Message Class
Package: com.salesforce.marketingcloud.pushmodels
Module: Push Models Module v1.0.2
Platform: androidJvm
The Message class is a data class representing a push notification message in the Salesforce Marketing Cloud Unified SDK. It implements Parcelable for efficient data passing between Android components.
A companion object for the Message class.
Represents media content associated with the message. Implements Parcelable.
All properties are annotated with @JvmField for Java interoperability.
alert: String- The alert text of the push notificationtitle: String?- Optional title for the notificationsound: String?- Optional sound identifier for the notification
id: String- Unique identifier for the message
contentType: Int- Type of content in the messagemessageType: Int- Type classification of the messagemessageLimit: Int- Limit on message deliveryproximity: Int- Proximity setting for the message
custom: String?- Optional custom data stringcustomKeys: Map<String, String>?- Optional map of custom key-value pairs
openDirect: String?- Optional direct open actionurl: String?- Optional URL associated with the message
startDateUtc: Date?- Optional start date in UTCendDateUtc: Date?- Optional end date in UTC
isRollingPeriod: Boolean- Indicates if the period is rollingperiodType: Int- Type of periodnumberOfPeriods: Int- Number of periodsmessagesPerPeriod: Int- Number of messages allowed per period
media: Message.Media?- Optional media content associated with the message
- Implements:
android.os.Parcelable