CometChatOngoingCallService class

Service for managing ongoing call notifications.

This service provides a persistent notification while a call is active, allowing users to return to the call from the notification.

On Android, this launches a foreground service with notification actions for mute/unmute and hang up.

Usage:

// Start the service when call begins
await CometChatOngoingCallService.launch();

// Stop the service when call ends
await CometChatOngoingCallService.abort();

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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

Static Methods

abort() Future<void>
Aborts/stops the ongoing call service and cancels the notification.
launch() Future<void>
Launches the ongoing call service with a persistent notification.