NotificationBuilderCallback
Callback for building notifications.
Interface for building notifications.
Syntax: interface NotificationBuilderCallback
Functions
Methods | Description |
---|---|
getActionIconId | This method retrieves the icon ID for a specific action associated with a push message. It allows customization of the action icons in the notification. |
onBuildNotification | This method is responsible for building a notification using the provided context, push message, notification ID, and notification builder. It allows customization of the notification based on the push message data. |
getActionIconId
This method retrieves the icon ID for a specific action associated with a push message. It allows customization of the action icons in the notification.
Syntax: abstract fun getActionIconId(context: Context, message: PushMessage, action: String, identifier: String): Int
Return Value: The icon ID for the action.
Parameters:
Parameters | Type | Description |
---|---|---|
context | Context | The application context. |
message | PushMessage | The push message associated with the action. |
action | String | The action for which the icon ID is needed. |
identifier | String | The identifier for the action. |
onBuildNotification
This method is responsible for building a notification using the provided context, push message, notification ID, and notification builder. It allows customization of the notification based on the push message data.
Syntax: abstract fun onBuildNotification(context: Context, message: PushMessage, notificationId: Int, builder: NotificationCompat.Builder)
Parameters:
Parameters | Type | Description |
---|---|---|
context | Context | The application context. |
message | PushMessage | The push message for the notification. |
notificationId | Int | The ID for the notification. |
builder | NotificationCompat.Builder | The notification builder. |
Updated 8 days ago