onEvent property

Stream<CallEvent?> onEvent

Listen to event callback from NotificationIncomingCall.

NotificationIncomingCall.onEvent.listen((event) { CallEvent.ACTION_CALL_INCOMING - Received an incoming call CallEvent.ACTION_CALL_START - Started an outgoing call CallEvent.ACTION_CALL_ACCEPT - Accepted an incoming call CallEvent.ACTION_CALL_DECLINE - Declined an incoming call CallEvent.ACTION_CALL_ENDED - Ended an incoming/outgoing call CallEvent.ACTION_CALL_TIMEOUT - Missed an incoming call CallEvent.ACTION_CALL_CALLBACK - only Android (click action Call back from missed call notification) CallEvent.ACTION_CALL_TOGGLE_HOLD - only iOS CallEvent.ACTION_CALL_TOGGLE_MUTE - only iOS CallEvent.ACTION_CALL_TOGGLE_DMTF - only iOS CallEvent.ACTION_CALL_TOGGLE_GROUP - only iOS CallEvent.ACTION_CALL_TOGGLE_AUDIO_SESSION - only iOS }

Implementation

static Stream<CallEvent?> get onEvent =>
    _eventChannel.receiveBroadcastStream().map(_receiveCallEvent);