NotificationPayload

class NotificationPayload constructor(notificationType: String, campaignId: String, text: NotificationText, imageUrl: String?, channelId: String, inboxExpiry: Long, actionButtons: List<ActionButton>, addOnFeatures: AddOnFeatures, payload: Bundle)

Notification payload

Author

Umang Chamaria

Constructors

NotificationPayload
Link copied to clipboard
fun NotificationPayload(notificationType: String, campaignId: String, text: NotificationText, imageUrl: String?, channelId: String, inboxExpiry: Long, actionButtons: List<ActionButton>, addOnFeatures: AddOnFeatures, payload: Bundle)

Functions

toString
Link copied to clipboard
open override fun toString(): String

Properties

actionButtons
Link copied to clipboard
val actionButtons: List<ActionButton>

List of Action buttons

addOnFeatures
Link copied to clipboard
val addOnFeatures: AddOnFeatures

Instance of AddOnFeatures

campaignId
Link copied to clipboard
val campaignId: String

Unique identifier for each campaign.

channelId
Link copied to clipboard
var channelId: String

Channel to which notification should be posted.

imageUrl
Link copied to clipboard
val imageUrl: String?

Url of the image to be shown in the notification.

inboxExpiry
Link copied to clipboard
val inboxExpiry: Long

Time at which notification should be deleted from inbox. Epoch value.

notificationType
Link copied to clipboard
val notificationType: String

Notification type

payload
Link copied to clipboard
val payload: Bundle

Payload received in Bundle format.

text
Link copied to clipboard
val text: NotificationText

Text content for the notification.