NotificationHandler

interface NotificationHandler : NotificationPermissionHandler

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun getIncomingCallNotification(    fullScreenPendingIntent: PendingIntent,     acceptCallPendingIntent: PendingIntent,     rejectCallPendingIntent: PendingIntent,     callerName: String?,     shouldHaveContentIntent: Boolean): Notification?

Customize the notification when you receive a push notification for ringing call with type RingingState.Incoming

Link copied to clipboard
abstract fun getNotificationUpdates(coroutineScope: CoroutineScope, call: Call, localUser: User, onUpdate: (Notification) -> Unit)

Get subsequent updates to notifications. Initially, notifications are posted by one of the other methods, and then this method can be used to re-post them with updated content.

Link copied to clipboard
abstract fun getOngoingCallNotification(    callId: StreamCallId,     callDisplayName: String? = null,     isOutgoingCall: Boolean = false,     remoteParticipantCount: Int = 0): Notification?

Customize the notification when you receive a push notification for ringing call with type RingingState.Outgoing and RingingState.Active

Link copied to clipboard
abstract fun getRingingCallNotification(    ringingState: RingingState,     callId: StreamCallId,     callDisplayName: String? = null,     shouldHaveContentIntent: Boolean = true): Notification?

Customize the notification when you receive a push notification for ringing call

Link copied to clipboard
Link copied to clipboard
abstract fun onLiveCall(callId: StreamCallId, callDisplayName: String)

Customize the notification when you receive a push notification for Live Call

Link copied to clipboard
abstract fun onMissedCall(callId: StreamCallId, callDisplayName: String)

Customize the notification when you receive a push notification for Missed Call

Link copied to clipboard
abstract fun onNotification(callId: StreamCallId, callDisplayName: String)

Customize the notification when you receive a push notification for general usage

Link copied to clipboard
abstract fun onRingingCall(callId: StreamCallId, callDisplayName: String)

Customize the notification when you receive a push notification for ringing call, which has further two types RingingState.Incoming and RingingState.Outgoing

Inherited functions

Link copied to clipboard
abstract fun onPermissionDenied()
Link copied to clipboard
abstract fun onPermissionGranted()
Link copied to clipboard
abstract fun onPermissionRationale()
Link copied to clipboard
abstract fun onPermissionRequested()