inviteUsersToOngoingCall method
Future<void>
inviteUsersToOngoingCall(
- List<
String> ? jidList, - dynamic callback(
- FlyResponse response
override
This method is used to invite the users to the ongoing call.
Implementation
@override
Future<void> inviteUsersToOngoingCall(
List<String>? jidList, Function(FlyResponse response)? callback) async {
try {
LogMessage.d('inviteUsersToOngoingCall :', " jidList : $jidList");
await mirrorFlyCallMethodChannel
.invokeMethod<bool>('inviteUsersToOngoingCall', {"jidList": jidList});
callback?.call(FlyResponse(true, FlyConstants.empty, FlyConstants.empty));
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
callback?.call(FlyResponse(false, FlyConstants.empty, FlyConstants.empty,
FlyException(e.code, e.message, e.details)));
} on Exception catch (e) {
LogMessage.d("Exception ", " $e");
callback?.call(FlyResponse(false, FlyConstants.empty, FlyConstants.empty,
FlyException(FlyErrorCode.unHandle, FlyErrorMessage.unHandle, e)));
}
}