isCallConnected static method

Future<bool?> isCallConnected({
  1. required dynamic flyCallback(
    1. FlyResponse response
    ),
})

This method allows you to check whether the current user is connected to the call.

Parameters:

  • flyCallback: A callback function that receives a FlyResponse as a return callback

Example:

Mirrorfly.isCallConnected(
  flyCallback: (response) {
    if (response.isSuccess) {
      print("Answer call succeeded");
    } else {
      print("Answer call failed ${response.message");
    }
  },

Implementation

static Future<bool?> isCallConnected(
    {required Function(FlyResponse response) flyCallback}) {
  return FlyChatFlutterPlatform.instance
      .isCallConnected(callback: flyCallback);
}