onEvent property

Stream<CallEvent?> get onEvent

Listen to event callback from FlutterCallkitIncoming.

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

Implementation

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