onEvent stream on FlutterCallkitIncoming emits CallEvent objects whenever a call lifecycle action occurs. Each event carries an Event enum value that identifies the action and a body map with call-specific data.
CallEvent class
Fields
The call lifecycle action that occurred. See the Event enum table below.
A map containing call data associated with the event. The contents mirror the fields of the originating CallKitParams (e.g.
id, nameCaller, handle, extra, etc.).Event enum
All enum values are defined incall_event.dart. The internal event name string is the value used over the platform channel and matches Event.name at runtime.
| Enum value | Internal event name | Platform | Description |
|---|---|---|---|
actionDidUpdateDevicePushTokenVoip | ...DID_UPDATE_DEVICE_PUSH_TOKEN_VOIP | iOS only | Device VoIP push token has been updated. Read the new token from body. |
actionCallIncoming | ...ACTION_CALL_INCOMING | Both | Plugin received and displayed an incoming call. |
actionCallStart | ...ACTION_CALL_START | Both | An outgoing call was started via startCall. |
actionCallAccept | ...ACTION_CALL_ACCEPT | Both | The user accepted an incoming call. |
actionCallDecline | ...ACTION_CALL_DECLINE | Both | The user declined an incoming call. |
actionCallEnded | ...ACTION_CALL_ENDED | Both | The call ended (by either party). |
actionCallTimeout | ...ACTION_CALL_TIMEOUT | Both | The incoming call timed out without being answered (missed call). |
actionCallConnected | ...ACTION_CALL_CONNECTED | Both | The call was marked as connected via setCallConnected. |
actionCallCallback | ...ACTION_CALL_CALLBACK | Android only | User tapped the “Call back” action in a missed-call notification. |
actionCallToggleHold | ...ACTION_CALL_TOGGLE_HOLD | Both | Fired when holdCall is called on either platform, or when the user toggles hold from the iOS CallKit UI. |
actionCallToggleMute | ...ACTION_CALL_TOGGLE_MUTE | Both | Fired when muteCall is called on either platform, or when the user toggles mute from the iOS CallKit UI. |
actionCallToggleDmtf | ...ACTION_CALL_TOGGLE_DMTF | iOS only | The user interacted with the DTMF keypad in the CallKit UI. |
actionCallToggleGroup | ...ACTION_CALL_TOGGLE_GROUP | iOS only | The user toggled call grouping in the CallKit UI. |
actionCallToggleAudioSession | ...ACTION_CALL_TOGGLE_AUDIO_SESSION | iOS only | The audio session was toggled by CallKit. |
actionCallCustom | ...ACTION_CALL_CUSTOM | Both | A custom event was sent from native code via sendEventCustom. |
The full internal event name prefix is
com.hiennv.flutter_callkit_incoming. — for example, com.hiennv.flutter_callkit_incoming.ACTION_CALL_INCOMING. The truncated ... in the table above represents this prefix.