NotificationConfig

data class NotificationConfig(val pushDeviceGenerators: List<PushDeviceGenerator> = emptyList(), val requestPermissionOnAppLaunch: () -> Boolean = { true }, val notificationHandler: NotificationHandler = NoOpNotificationHandler, val autoRegisterPushDevice: Boolean = true, val requestPermissionOnDeviceRegistration: () -> Boolean = { true }, val hideRingingNotificationInForeground: Boolean = false, val enableCallNotificationUpdates: Boolean = true, val mediaNotificationCallTypes: Set<String> = hashSetOf(CallType.Livestream.name), val notificationUpdateTriggers: (Call) -> Flow<*>? = { _ -> null })

Constructors

Link copied to clipboard
constructor(pushDeviceGenerators: List<PushDeviceGenerator> = emptyList(), requestPermissionOnAppLaunch: () -> Boolean = { true }, notificationHandler: NotificationHandler = NoOpNotificationHandler, autoRegisterPushDevice: Boolean = true, requestPermissionOnDeviceRegistration: () -> Boolean = { true }, hideRingingNotificationInForeground: Boolean = false, enableCallNotificationUpdates: Boolean = true, mediaNotificationCallTypes: Set<String> = hashSetOf(CallType.Livestream.name), notificationUpdateTriggers: (Call) -> Flow<*>? = { _ -> null })

Properties

Link copied to clipboard
Link copied to clipboard

If true, call notifications will receive subsequent updates, based on the number of participants and other data.

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. NOTE: This setting has only an effect if you don't set a custom NotificationHandler!

Link copied to clipboard

List of call types (as Strings) for which media notifications should be enabled. Allows support for custom user-defined call types.

Link copied to clipboard
val notificationUpdateTriggers: (Call) -> Flow<*>?

When notification updates are triggered, the update is based on observing internal call state. This parameters enables customization on which state flows will trigger a notification update.

Link copied to clipboard
val pushDeviceGenerators: List<PushDeviceGenerator>