reportNewIncomingCall method
Report a new incoming call to the system.
If CallKit error received, the incoming call has been disallowed by the system and will not be displayed, so the provider should not proceed with the call.
uuid
is the unique identifier of the call.
Note that this value will be uppercased by the CallKit.
update
is the information for the call.
Implementation
Future<void> reportNewIncomingCall(String uuid, FCXCallUpdate update) async {
try {
String method = 'reportNewIncomingCall';
await _methodChannel.invokeMethod(
'$_PROVIDER.$method',
{'uuid': uuid, 'callUpdate': update._toMap()},
);
_FCXLog._i(runtimeType, '$method uuid: $uuid');
} on PlatformException catch (e) {
var exception = FCXException(e.code, e.message);
_FCXLog._e(runtimeType, exception);
throw exception;
}
}