isCallConnected static method
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);
}