displayIncomingCall method

Future<void> displayIncomingCall(
  1. String uuid,
  2. String handle,
  3. String mettingId,
  4. String localizedCallerName, {
  5. HandleType handleType = HandleType.phoneNumber,
  6. bool video = false,
  7. String? callerAvatar,
})

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,
  });
}