onNativeCallEvent method
Register a sink for native call actions the user took in the SYSTEM UI.
action is answer | reject | disconnect; callId identifies the call.
Implementation
@override
void onNativeCallEvent(void Function(String action, String callId) sink) {
_callSink = sink;
final p = _pendingCall;
if (p != null) {
_pendingCall = null;
sink(p[0], p[1]);
}
}