Package-level declarations

Types

Link copied to clipboard
sealed class ChatNotification

Represents a chat notification with a specific type.

Link copied to clipboard
data class NotificationConfig @JvmOverloads constructor(val pushNotificationsEnabled: Boolean = true, val ignorePushMessagesWhenUserOnline: Boolean = true, val ignorePushMessageWhenUserOnline: (type: String) -> Boolean = { type -> when (type) { ChatNotification.TYPE_MESSAGE_NEW -> ignorePushMessagesWhenUserOnline ChatNotification.TYPE_NOTIFICATION_REMINDER_DUE -> false // Always show reminder notifications else -> true // Default behavior for unknown types } }, val pushDeviceGenerators: List<PushDeviceGenerator> = listOf(), val shouldShowNotificationOnPush: () -> Boolean = { true }, val requestPermissionOnAppLaunch: () -> Boolean = { true }, val autoTranslationEnabled: Boolean = false, val tokenProvider: TokenProvider? = null)

Push notifications configuration class

Link copied to clipboard

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

Link copied to clipboard

Factory for default NotificationHandler. Use it to customize an intent the user triggers when clicking on a notification.

Link copied to clipboard

Generator responsible for providing information needed to register the push notifications provider

Link copied to clipboard
interface UserIconBuilder

Creates an IconCompat for a given user to be shown on notifications.