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 = getDefaultNewMessageIntentFun(context), notificationChannel: () -> NotificationChannel = getDefaultNotificationChannel(context), userIconBuilder: UserIconBuilder = provideDefaultUserIconBuilder(context), permissionHandler: NotificationPermissionHandler? = provideDefaultNotificationPermissionHandler(context), notificationTextFormatter: (currentUser: User?, message: Message) -> CharSequence = getDefaultNotificationTextFormatter(notificationConfig), actionsProvider: (notificationId: Int, channel: Channel, message: Message) -> List<NotificationCompat.Action> = getDefaultActionsProvider(context)): NotificationHandler

Method that creates a NotificationHandler.