makeVoiceCall static method

Future<void> makeVoiceCall({
  1. required String toUserJid,
  2. required dynamic flyCallBack(
    1. FlyResponse response
    ),
})

Makes a voice call to the specified user.

The userJid parameter is the JID of the user with whom the voice call will be initiated.

Before initiating the voice call, this method checks for permissions to access the microphone. The flyCallBack parameter is a function that will be called upon completion of the operation. It receives a FlyResponse object as a parameter, which contains information about the success or failure of the operation.

Implementation

static Future<void> makeVoiceCall(
    {required String toUserJid,
    required Function(FlyResponse response) flyCallBack}) async {
  return FlyChatFlutterPlatform.instance
      .makeVoiceCall(toUserJid, flyCallBack);
}