DefaultNotificationHandler
open class DefaultNotificationHandler(application: Application, notificationPermissionHandler: NotificationPermissionHandler = DefaultNotificationPermissionHandler
.createDefaultNotificationPermissionHandler(application), val hideRingingNotificationInForeground: Boolean = false, @DrawableRes val notificationIconRes: Int = android.R.drawable.ic_menu_call) : NotificationHandler, NotificationPermissionHandler
Constructors
Link copied to clipboard
constructor(application: Application, notificationPermissionHandler: NotificationPermissionHandler = DefaultNotificationPermissionHandler
.createDefaultNotificationPermissionHandler(application), hideRingingNotificationInForeground: Boolean = false, @DrawableRes notificationIconRes: Int = android.R.drawable.ic_menu_call)
Properties
Link copied to clipboard
Set this to true if you want to make the ringing notifications as low-priority in case the application is in foreground. This will prevent the notification from interrupting the user while he is in the app. In this case you need to make sure to handle this call state and display an incoming call screen.
Link copied to clipboard
The notification icon for call notifications.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override 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
open override fun getOngoingCallNotification(callId: StreamCallId, callDisplayName: String?, isOutgoingCall: Boolean, remoteParticipantCount: Int): Notification?
Link copied to clipboard
open override fun getRingingCallNotification(ringingState: RingingState, callId: StreamCallId, callDisplayName: String?, shouldHaveContentIntent: Boolean): Notification?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard