reportOutgoingCallConnected method

Future<void> reportOutgoingCallConnected(
  1. String uuid,
  2. DateTime? dateConnected
)

Reports to the provider that an outgoing call with the specified unique identifier finished connecting at a particular time.

uuid is the unique identifier of the call. Note that this value will be uppercased by the CallKit.

dateConnected is the time at which the call connected. If null, the current time is used.

A call is considered connected when both caller and callee can start communicating.

Implementation

Future<void> reportOutgoingCallConnected(
  String uuid,
  DateTime? dateConnected,
) async {
  try {
    String method = 'reportOutgoingCallConnected';
    await _methodChannel.invokeMethod(
      '$_PROVIDER.$method',
      {'uuid': uuid, 'dateConnected': dateConnected?.toIso8601String()},
    );
    _FCXLog._i(runtimeType, '$method uuid: $uuid');
  } on PlatformException catch (e) {
    var exception = FCXException(e.code, e.message);
    _FCXLog._e(runtimeType, exception);
    throw exception;
  }
}