Types

Link copied to clipboard
object Companion

Functions

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.

Inherited functions

Link copied to clipboard
abstract fun createMinimalMediaStyleNotification(callId: StreamCallId, mediaNotificationConfig: MediaNotificationConfig, remoteParticipantCount: Int): NotificationCompat.Builder?
Link copied to clipboard
open fun getIncomingCallNotification(fullScreenPendingIntent: PendingIntent, acceptCallPendingIntent: PendingIntent, rejectCallPendingIntent: PendingIntent, callerName: String?, shouldHaveContentIntent: Boolean): Notification?
abstract fun getIncomingCallNotification(fullScreenPendingIntent: PendingIntent, acceptCallPendingIntent: PendingIntent, rejectCallPendingIntent: PendingIntent, callerName: String?, shouldHaveContentIntent: Boolean, payload: Map<String, Any?>): Notification?

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

Link copied to clipboard
open fun getMissedCallNotification(callId: StreamCallId, callDisplayName: String? = null): Notification?
abstract fun getMissedCallNotification(callId: StreamCallId, callDisplayName: String? = null, payload: Map<String, Any?>): Notification?

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

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

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

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

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

Link copied to clipboard

Temporary notification. Sometimes the system needs to show a notification while the call is not ready. This is the notification that will be shown.

Link copied to clipboard
abstract suspend fun onCallNotificationUpdate(call: Call): Notification?

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
open fun onLiveCall(callId: StreamCallId, callDisplayName: String)
abstract fun onLiveCall(callId: StreamCallId, callDisplayName: String, payload: Map<String, Any?>)

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

Link copied to clipboard
open fun onMissedCall(callId: StreamCallId, callDisplayName: String)
abstract fun onMissedCall(callId: StreamCallId, callDisplayName: String, payload: Map<String, Any?>)

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

Link copied to clipboard
open fun onNotification(callId: StreamCallId, callDisplayName: String)
abstract fun onNotification(callId: StreamCallId, callDisplayName: String, payload: Map<String, Any?>)

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

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()
Link copied to clipboard
open fun onRingingCall(callId: StreamCallId, callDisplayName: String)
abstract fun onRingingCall(callId: StreamCallId, callDisplayName: String, payload: Map<String, Any?>)

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

Link copied to clipboard
abstract suspend fun updateIncomingCallNotification(call: Call, callDisplayName: String): Notification?

Update the ringing call notification.

Link copied to clipboard
abstract suspend fun updateOngoingCallNotification(call: Call, callDisplayName: String): Notification?

Update the ongoing call notification.

Link copied to clipboard
abstract suspend fun updateOutgoingCallNotification(call: Call, callDisplayName: String?): Notification?

Update the ringing call notification.