public static interface ADMMessage.Builder extends CopyableBuilder<ADMMessage.Builder,ADMMessage>
Modifier and Type | Method and Description |
---|---|
ADMMessage.Builder |
action(Action action)
The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app
launches, or it becomes the foreground app if it has been sent to the background.
|
ADMMessage.Builder |
action(String action)
The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your app
launches, or it becomes the foreground app if it has been sent to the background.
|
ADMMessage.Builder |
body(String body)
The message body of the notification, the email body or the text message.
|
ADMMessage.Builder |
consolidationKey(String consolidationKey)
Optional.
|
ADMMessage.Builder |
data(Map<String,String> data)
The data payload used for a silent push.
|
ADMMessage.Builder |
expiresAfter(String expiresAfter)
Optional.
|
ADMMessage.Builder |
iconReference(String iconReference)
The icon image name of the asset saved in your application.
|
ADMMessage.Builder |
imageIconUrl(String imageIconUrl)
The URL that points to an image used as the large icon to the notification content view.
|
ADMMessage.Builder |
imageUrl(String imageUrl)
The URL that points to an image used in the push notification.
|
ADMMessage.Builder |
md5(String md5)
Optional.
|
ADMMessage.Builder |
rawContent(String rawContent)
The Raw JSON formatted string to be used as the payload.
|
ADMMessage.Builder |
silentPush(Boolean silentPush)
Indicates if the message should display on the users device.
|
ADMMessage.Builder |
smallImageIconUrl(String smallImageIconUrl)
The URL that points to an image used as the small icon for the notification which will be used to represent
the notification in the status bar and content view
|
ADMMessage.Builder |
sound(String sound)
Indicates a sound to play when the device receives the notification.
|
ADMMessage.Builder |
substitutions(Map<String,? extends Collection<String>> substitutions)
Default message substitutions.
|
ADMMessage.Builder |
title(String title)
The message title that displays above the message on the user's device.
|
ADMMessage.Builder |
url(String url)
The URL to open in the user's mobile browser.
|
copy
applyMutation, build
ADMMessage.Builder action(String action)
action
- The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your
app launches, or it becomes the foreground app if it has been sent to the background. This is the
default action. DEEP_LINK - Uses deep linking features in iOS and Android to open your app and display
a designated user interface within the app. URL - The default mobile browser on the user's device
launches and opens a web page at the URL you specify. Possible values include: OPEN_APP | DEEP_LINK |
URLAction
,
Action
ADMMessage.Builder action(Action action)
action
- The action that occurs if the user taps a push notification delivered by the campaign: OPEN_APP - Your
app launches, or it becomes the foreground app if it has been sent to the background. This is the
default action. DEEP_LINK - Uses deep linking features in iOS and Android to open your app and display
a designated user interface within the app. URL - The default mobile browser on the user's device
launches and opens a web page at the URL you specify. Possible values include: OPEN_APP | DEEP_LINK |
URLAction
,
Action
ADMMessage.Builder body(String body)
body
- The message body of the notification, the email body or the text message.ADMMessage.Builder consolidationKey(String consolidationKey)
consolidationKey
- Optional. Arbitrary string used to indicate multiple messages are logically the same and that ADM is
allowed to drop previously enqueued messages in favor of this one.ADMMessage.Builder data(Map<String,String> data)
data
- The data payload used for a silent push. This payload is added to the notifications'
data.pinpoint.jsonBody' objectADMMessage.Builder expiresAfter(String expiresAfter)
expiresAfter
- Optional. Number of seconds ADM should retain the message if the device is offlineADMMessage.Builder iconReference(String iconReference)
iconReference
- The icon image name of the asset saved in your application.ADMMessage.Builder imageIconUrl(String imageIconUrl)
imageIconUrl
- The URL that points to an image used as the large icon to the notification content view.ADMMessage.Builder imageUrl(String imageUrl)
imageUrl
- The URL that points to an image used in the push notification.ADMMessage.Builder md5(String md5)
md5
- Optional. Base-64-encoded MD5 checksum of the data parameter. Used to verify data integrityADMMessage.Builder rawContent(String rawContent)
rawContent
- The Raw JSON formatted string to be used as the payload. This value overrides the message.ADMMessage.Builder silentPush(Boolean silentPush)
silentPush
- Indicates if the message should display on the users device. Silent pushes can be used for Remote
Configuration and Phone Home use cases.ADMMessage.Builder smallImageIconUrl(String smallImageIconUrl)
smallImageIconUrl
- The URL that points to an image used as the small icon for the notification which will be used to
represent the notification in the status bar and content viewADMMessage.Builder sound(String sound)
sound
- Indicates a sound to play when the device receives the notification. Supports default, or the filename
of a sound resource bundled in the app. Android sound files must reside in /res/raw/ADMMessage.Builder substitutions(Map<String,? extends Collection<String>> substitutions)
substitutions
- Default message substitutions. Can be overridden by individual address substitutions.ADMMessage.Builder title(String title)
title
- The message title that displays above the message on the user's device.ADMMessage.Builder url(String url)
url
- The URL to open in the user's mobile browser. Used if the value for Action is URL.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.