CometchatPushNotificationsPlatform class
abstract
Inheritance
Object
PlatformInterface
CometchatPushNotificationsPlatform
Implementers
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
cancelCallNotification (String callId )
→ Future <bool >
Cancels an incoming call notification by call ID.
checkCallPermissions ()
→ Future <Map <String , bool > >
Returns the current state of OEM permissions that affect whether
call notifications can show a full-screen UI on locked / background
devices.
dismissIncomingCallActivity ()
→ Future <bool >
Dismisses the dedicated full-screen incoming-call activity (Android),
e.g. when the caller cancels/ends the call before it is answered.
No-op on platforms without a dedicated call activity.
getLaunchCallDetails ()
→ Future <Map <String , dynamic > ? >
Returns the pending call details captured from the launch intent
(if the app was launched by tapping an incoming call notification).
getPlatformVersion ()
→ Future <String ? >
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAutoStartSettings ()
→ Future <bool >
Opens the OEM-specific Autostart permission screen (Xiaomi, Oppo,
Vivo, Huawei, Samsung). Falls back to the app details page on
stock Android.
openBatteryOptimizationSettings ()
→ Future <bool >
Opens the battery optimization exemption request.
openFullScreenIntentSettings ()
→ Future <bool >
Opens Android 14+ full-screen intent permission screen.
openOverlaySettings ()
→ Future <bool >
Opens the "Display over other apps" permission screen.
setDeclineCallHandler (void handler (String sessionId ) )
→ void
Registers a handler for silent decline broadcasts.
setIncomingCallLaunchHandler (void handler (Map <String , dynamic > details ) )
→ void
Registers a handler for call notification taps that occur while the
app is already running (e.g., tapping a call notification after
putting the app in background).
showCallNotification ({required String callId , required String callerName , required bool isVideo , String ? callerAvatar })
→ Future <bool >
Shows a full-screen incoming call notification.
toString ()
→ String
A string representation of this object.
inherited
cometchat_push_notifications 1.0.1