onNativeCallEvent method

  1. @override
void onNativeCallEvent(
  1. void sink(
    1. String action,
    2. String callId
    )
)
override

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