NotificationHandlerFactory
object NotificationHandlerFactory
Factory for default NotificationHandler. Use it to customize an intent the user triggers when clicking on a notification.
Functions
Link copied to clipboard
fun createNotificationHandler(context: Context, notificationConfig: NotificationConfig, newMessageIntent: (message: Message, channel: Channel) -> Intent? = null, notificationChannel: () -> NotificationChannel? = null, userIconBuilder: UserIconBuilder = provideDefaultUserIconBuilder(context), permissionHandler: NotificationPermissionHandler? = provideDefaultNotificationPermissionHandler(context)): NotificationHandler
fun createNotificationHandler(context: Context, newMessageIntent: (message: Message, channel: Channel) -> Intent? = null, notificationChannel: () -> NotificationChannel? = null, userIconBuilder: UserIconBuilder = provideDefaultUserIconBuilder(context), permissionHandler: NotificationPermissionHandler? = provideDefaultNotificationPermissionHandler(context), autoTranslationEnabled: Boolean = false): NotificationHandler
Method that creates a NotificationHandler.