makeVideoCall static method

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

Initiates a video call with the specified user.

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

Before initiating the video call, this method checks for permissions to access the camera and 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> makeVideoCall(
    {required String toUserJid,
    required Function(FlyResponse response) flyCallBack}) async {
  return FlyChatFlutterPlatform.instance
      .makeVideoCall(toUserJid, flyCallBack);
}