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 notification
  • title: String? - Optional title for the notification
  • sound: String? - Optional sound identifier for the notification
  • id: String - Unique identifier for the message
  • contentType: Int - Type of content in the message
  • messageType: Int - Type classification of the message
  • messageLimit: Int - Limit on message delivery
  • proximity: Int - Proximity setting for the message
  • custom: String? - Optional custom data string
  • customKeys: Map<String, String>? - Optional map of custom key-value pairs
  • openDirect: String? - Optional direct open action
  • url: String? - Optional URL associated with the message
  • startDateUtc: Date? - Optional start date in UTC
  • endDateUtc: Date? - Optional end date in UTC
  • isRollingPeriod: Boolean - Indicates if the period is rolling
  • periodType: Int - Type of period
  • numberOfPeriods: Int - Number of periods
  • messagesPerPeriod: Int - Number of messages allowed per period
  • media: Message.Media? - Optional media content associated with the message
  • Implements: android.os.Parcelable