NotificationHandler

Handler responsible for showing and dismissing notification. Implement this interface and use ChatClient.Builder.notifications if you want to customize default behavior

See also

Functions

Link copied to clipboard

Dismiss all notifications.

Link copied to clipboard
abstract fun dismissChannelNotifications(channelType: String, channelId: String)

Dismiss notifications from a given channelType and channelId.

Link copied to clipboard

Handles showing notification after receiving NewMessageEvent from other users. Default implementation loads necessary data and displays notification even if app is in foreground.

Link copied to clipboard
abstract fun onNotificationPermissionStatus(status: NotificationPermissionStatus)
Link copied to clipboard
open fun onPushMessage(message: PushMessage): Boolean

Handles showing notification after receiving PushMessage. Default implementation loads necessary data from the server and shows notification if application is not in foreground.

Link copied to clipboard
abstract fun showNotification(channel: Channel, message: Message)

Show a notification for the given channel and message