displayIncomingCall method
Display system UI for incoming calls
An uuid
that should be stored and re-used for stopCall
.
A handle
e.g Phone number of the caller
A handleType
which describes this handle
see HandleType
tell the system whether this is a video
call
Implementation
Future<void> displayIncomingCall(
String uuid, String handle, String mettingId, String localizedCallerName,
{HandleType handleType = HandleType.phoneNumber,
bool video = false,
String? callerAvatar}) async {
if (!Platform.isIOS) {
return;
}
await _channel.invokeMethod<void>('displayIncomingCall', {
"uuid": uuid,
"mettingId": mettingId,
"handle": handle,
"localizedCallerName": localizedCallerName,
"handleType": handleTypeToString(handleType),
"video": video,
"callerAvatar": callerAvatar,
});
}