NotificationMessage

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.

Declaration 

1data class NotificationMessage : Parcelable

Nested Types 

Sound 

1enum Sound : Enum<NotificationMessage.Sound>

Enumeration representing sound options for notifications.

Trigger 

1enum Trigger : Enum<NotificationMessage.Trigger>

Enumeration representing trigger types for notifications.

Type 

1enum Type : Enum<NotificationMessage.Type>

Enumeration representing notification message types.

Properties 

alert 

1@JvmField
2val alert: String

The alert text for the notification.

context 

1@JvmField
2val context: String?

Optional context information for the notification.

custom 

1@JvmField
2val custom: String?

Optional custom data string.

customKeys 

1@JvmField
2val customKeys: Map<String, String>

Map of custom key-value pairs.

id 

1@JvmField
2val id: String

Unique identifier for the notification message.

mediaAltText 

1@JvmField
2val mediaAltText: String?

Optional alternative text for media content.

mediaUrl 

1@JvmField
2val mediaUrl: String?

Optional URL for media content.

payload 

1@JvmField
2val payload: Map<String, String>?

Optional map containing payload data.

propertyBag 

1@JvmField
2val propertyBag: String?

Optional property bag string.

region 

1@JvmField
2val region: Region?

Optional region information.

requestId 

1@JvmField
2val requestId: String?

Optional request identifier.

richFeatures 

1@JvmField
2val richFeatures: RichFeatures?

Optional rich notification features.

sound 

1@JvmField
2val sound: NotificationMessage.Sound

Sound configuration for the notification.

soundName 

1@JvmField
2val soundName: String?

Optional custom sound name.

subtitle 

1@JvmField
2val subtitle: String?

Optional subtitle text.

title 

1@JvmField
2val title: String?

Optional title text.

trigger 

1@JvmField
2val trigger: NotificationMessage.Trigger

Trigger type for the notification.

type 

1@JvmField
2val type: NotificationMessage.Type

Type of the notification message.

url 

1@JvmField
2val url: String?

Optional URL associated with the notification.

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!