Message
NotificationMessage
Region
PushKeys
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
Package: com.salesforce.marketingcloud.pushmodels
Module: Push Models Module v1.0.2
A data class representing a notification message in the Salesforce Marketing Cloud Unified SDK.
1data class NotificationMessage : Parcelable1enum Sound : Enum<NotificationMessage.Sound>Enumeration representing sound options for notifications.
1enum Trigger : Enum<NotificationMessage.Trigger>Enumeration representing trigger types for notifications.
1enum Type : Enum<NotificationMessage.Type>Enumeration representing notification message types.
1@JvmField
2val alert: StringThe alert text for the notification.
1@JvmField
2val context: String?Optional context information for the notification.
1@JvmField
2val custom: String?Optional custom data string.
1@JvmField
2val customKeys: Map<String, String>Map of custom key-value pairs.
1@JvmField
2val id: StringUnique identifier for the notification message.
1@JvmField
2val mediaAltText: String?Optional alternative text for media content.
1@JvmField
2val mediaUrl: String?Optional URL for media content.
1@JvmField
2val payload: Map<String, String>?Optional map containing payload data.
1@JvmField
2val propertyBag: String?Optional property bag string.
1@JvmField
2val region: Region?Optional region information.
1@JvmField
2val requestId: String?Optional request identifier.
1@JvmField
2val richFeatures: RichFeatures?Optional rich notification features.
1@JvmField
2val sound: NotificationMessage.SoundSound configuration for the notification.
1@JvmField
2val soundName: String?Optional custom sound name.
1@JvmField
2val subtitle: String?Optional subtitle text.
1@JvmField
2val title: String?Optional title text.
1@JvmField
2val trigger: NotificationMessage.TriggerTrigger type for the notification.
1@JvmField
2val type: NotificationMessage.TypeType of the notification message.
1@JvmField
2val url: String?Optional URL associated with the notification.