CometChatNotificationConfig class

Configuration for initializing CometChatPushNotifications.

This plugin exclusively uses a custom Flutter call screen for incoming and outgoing call UI on both Android and iOS. Native call UI (CallKit/ConnectionService) is NOT used for display.

On iOS, CallKit is used internally only for mandatory PushKit reporting — the actual UI shown to the user is always the custom screen.

Default vs Custom call screen

If customCallScreenBuilder is null, the plugin uses a built-in default incoming call screen with caller name, avatar, and Accept/Decline buttons. To override it, provide your own builder.

Constructors

CometChatNotificationConfig({required String appId, required String region, CometChatCallScreenBuilder? customCallScreenBuilder, CometChatCallAcceptedCallback? onCallAccepted, CometChatCallDeclinedCallback? onCallDeclined, NvpConfig? nvpConfig, CometChatCallActionHandler? callActionHandler, bool showInAppNotifications = false, bool showInAppVoIP = false})
Creates a CometChatNotificationConfig instance.

Properties

appId → String
The CometChat app ID (required for token registration).
final
callActionHandler → CometChatCallActionHandler?
Optional handler for in-call control actions (mute, speaker, camera).
final
customCallScreenBuilder → CometChatCallScreenBuilder?
Optional custom call screen builder.
final
hashCode → int
The hash code for this object.
no setterinherited
nvpConfig → NvpConfig?
Optional underlying NVP configuration for advanced customization.
final
onCallAccepted → CometChatCallAcceptedCallback?
Called when the user accepts an incoming call from the default call screen.
final
onCallDeclined → CometChatCallAcceptedCallback?
Called when the user declines an incoming call from the default call screen.
final
region → String
The CometChat region (e.g., 'us', 'eu').
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showInAppNotifications → bool
Whether to show in-app chat notifications when the app is in the foreground.
final
showInAppVoIP → bool
Whether to show the VoIP incoming call screen when the app is in the foreground.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited