customizeNotificationBuilder

open fun customizeNotificationBuilder(notificationBuilder: NotificationCompat.Builder, context: Context, notificationPayload: NotificationPayload)

Callback to customize the notification builder object if required. You can use this method to update the channel ID, update auto-dismiss time, and other properties of the notification builder.

Since

13.04.00

Parameters

notificationBuilder

instance of NotificationCompat.Builder that represents the builder object for the notification. You can customize the builder using this field.

context

instance of Context that provides context for building the notification.

notificationPayload

instance of NotificationPayload that represents the payload for the notification, containing all necessary data.

Example usage:

override fun customizeNotificationBuilder(
notificationBuilder: NotificationCompat.Builder,
context: Context,
notificationPayload: NotificationPayload
) {
notificationBuilder.setChannelId("your_channel_id")
}