java.lang.Object | |
↳ | com.salesforce.marketingcloud.notifications.NotificationMessage |
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | NotificationMessage.Sound | ||||||||||
enum | NotificationMessage.Trigger | ||||||||||
enum | NotificationMessage.Type |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
NotificationMessage() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract String |
alert()
The alert text that is used as the ticker text and content text of the notification.
| ||||||||||
abstract String | custom() | ||||||||||
abstract Map<String, String> | customKeys() | ||||||||||
abstract String |
id()
The message id.
| ||||||||||
abstract String | mediaAltText() | ||||||||||
abstract String | mediaUrl() | ||||||||||
abstract int |
notificationId()
The id used when calling
notify(String, int, android.app.Notification)
| ||||||||||
abstract Map<String, String> |
payload()
The original message payload sent via push.
| ||||||||||
abstract Region |
region()
For notifications triggered by Geofence/Beacon messaging this field will be populated with the region
information used for tracking the associated event.
| ||||||||||
abstract String |
regionId()
The id for the associated region.
| ||||||||||
abstract NotificationMessage.Sound |
sound()
Sound set by the marketer.
| ||||||||||
abstract String |
soundName()
The sound name provided in the message.
| ||||||||||
abstract String |
subTitle()
This value can be sent in the message payload, but there is no defined way of displaying a sub title in a
notification.
| ||||||||||
abstract String |
title()
The title to be used for the notification.
| ||||||||||
abstract NotificationMessage.Trigger |
trigger()
Trigger of the message.
| ||||||||||
abstract NotificationMessage.Type |
type()
Message type.
| ||||||||||
abstract String |
url()
The url set for the notification from the marketer.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
The alert text that is used as the ticker text and content text of the notification.
The message id.
The id used when calling notify(String, int, android.app.Notification)
The original message payload sent via push. Will only be populated when trigger() == Trigger.PUSH
.
For notifications triggered by Geofence/Beacon messaging this field will be populated with the region information used for tracking the associated event.
The id for the associated region. Will be null for PUSH
messages.
This value can be sent in the message payload, but there is no defined way of displaying a sub title in a notification. The value is parsed in this object, but will not be added to the notification by the SDK.
The title to be used for the notification. If a title is provided in the message payload it will be used, otherwise the message will be displayed without a title.
The url set for the notification from the marketer. Note: This might not be a valid http url