MethodChannelCometchatPushNotifications class

An implementation of CometchatPushNotificationsPlatform that uses method channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelCallNotification(String callId) Future<bool>
Cancels an incoming call notification by call ID.
override
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.
override
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.
override
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).
override
getPlatformVersion() Future<String?>
override
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.
override
openBatteryOptimizationSettings() Future<bool>
Opens the battery optimization exemption request.
override
openFullScreenIntentSettings() Future<bool>
Opens Android 14+ full-screen intent permission screen.
override
openOverlaySettings() Future<bool>
Opens the "Display over other apps" permission screen.
override
setDeclineCallHandler(void handler(String sessionId)) → void
Registers a handler for silent decline broadcasts.
override
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).
override
showCallNotification({required String callId, required String callerName, required bool isVideo, String? callerAvatar}) Future<bool>
Shows a full-screen incoming call notification.
override
toString() String
A string representation of this object.
inherited

Operators

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