startCall method

Future<void> startCall(
  1. String uuid,
  2. String handle,
  3. String contactIdentifier, {
  4. HandleType handleType = HandleType.phoneNumber,
  5. bool video = false,
})

When you make an outgoing call, tell the device that a call is occurring.

An uuid that should be stored and re-used for stopCall. A handle e.g Phone number of the caller The contactIdentifier is displayed in the native call UI, and is typically the name of the call recipient. A handleType which describes this handle see HandleType tell the system whether this is a video call

Implementation

Future<void> startCall(String uuid, String handle, String contactIdentifier,
    {HandleType handleType = HandleType.phoneNumber,
    bool video = false}) async {
  if (!Platform.isIOS) {
    return;
  }
  await _channel.invokeMethod<void>('startCall', {
    "uuid": uuid,
    "handle": handle,
    "contactIdentifier": contactIdentifier,
    "handleType": handleTypeToString(handleType),
    "video": video,
  });
}