onNativeCallEvent method

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

Register a sink for native call actions the user took in the SYSTEM UI. action is answer | reject | disconnect; callId identifies the call.

Implementation

void onNativeCallEvent(void Function(String action, String callId) sink) {}