NotificationMessage

data class NotificationMessage : Parcelable

Types

Link copied to clipboard
object Companion
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
@JvmField
val alert: String
Link copied to clipboard
@JvmField
val context: String? = null
Link copied to clipboard
@JvmField
val custom: String? = null
Link copied to clipboard
@JvmField
val customKeys: Map<String, String>
Link copied to clipboard
@JvmField
val id: String
Link copied to clipboard
@JvmField
val mediaAltText: String? = null
Link copied to clipboard
@JvmField
val mediaUrl: String? = null
Link copied to clipboard
@set:RestrictTo(value = [RestrictTo.Scope.LIBRARY])
var notificationId: Int
Link copied to clipboard
@JvmField
val payload: Map<String, String>? = null
Link copied to clipboard
@JvmField
val propertyBag: String? = null
Link copied to clipboard
@JvmField
val region: Region? = null
Link copied to clipboard
@JvmField
val requestId: String? = null
Link copied to clipboard
@JvmField
val richFeatures: RichFeatures? = null
Link copied to clipboard
Link copied to clipboard
@JvmField
val soundName: String? = null
Link copied to clipboard
@JvmField
val subtitle: String? = null
Link copied to clipboard
@JvmField
val title: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@JvmField
val url: String? = null

Functions

Link copied to clipboard
fun NotificationMessage.asNotificationClickEvent(base64EncodedData: String? = this.context, receivedTimestamp: Long = System.currentTimeMillis(), sentTimestamp: Long = System.currentTimeMillis(), actionType: String, actionItemId: String, title: String?): NotificationClickEvent

Direct extension to create a NotificationClickEvent from a NotificationMessage Uses toNotificationEvent() for base event and adds actionType, actionItemId, and title

Link copied to clipboard
fun NotificationMessage.asNotificationDisplayedEvent(base64EncodedData: String? = this.context, receivedTimestamp: Long = System.currentTimeMillis(), sentTimestamp: Long = System.currentTimeMillis()): NotificationDisplayedEvent

Direct extension to create a NotificationDisplayedEvent from a NotificationMessage Uses toNotificationEvent() to create the base event

Link copied to clipboard
fun NotificationMessage.asNotificationOpenEvent(base64EncodedData: String? = this.context, receivedTimestamp: Long = System.currentTimeMillis(), sentTimestamp: Long = System.currentTimeMillis()): NotificationOpenEvent

Direct extension to create a NotificationOpenEvent from a NotificationMessage Uses toNotificationEvent() to create the base event

Link copied to clipboard
fun NotificationMessage.asPushReceivedEvent(base64EncodedData: String? = this.context, receivedTimestamp: Long = System.currentTimeMillis(), sentTimestamp: Long = System.currentTimeMillis(), messageType: String?, pushData: Map<String, String>?): PushReceivedEvent

Direct extension to create a PushReceivedEvent from a NotificationMessage Uses toNotificationEvent() for base event and adds receivedTimestamp, sentTimestamp, and messageType

Link copied to clipboard
fun NotificationMessage.toNotificationEvent(base64EncodedData: String? = this.context, receivedTimestamp: Long = System.currentTimeMillis(), sentTimestamp: Long = System.currentTimeMillis()): NotificationEvent

Extension function to create a PushReceivedEvent from a NotificationMessage Parses a Base64 encoded string to extract source, destination, mid, and tenantid