Interface INotificationMessage
interface INotificationMessage
Extends com.amazon.apmf.IStandard
Interface used by ADM server in client application context to process the notification message
and send user-visible notification on behalf of client application.
Notification messages are defined by preset key-value pairs.
Methods
getTitle()
string getTitle()
Get the title of this notification message.
Returns
string
The title of this notification message.
getBody()
string getBody()
Get the body of this notification message.
Returns
string
The body of this notification message.
getKeys()
string[] getKeys()
Get an array of all the keys in this notification message. All keys are
strings.
Returns
string[]
An array of keys.
getStringValue()
Gets the value for the given key.stringgetStringValue(stringkey)
Parameters
key
string — Required
The key to get.
Returns
string
The string value for the given key.
Throws
InvalidArgumentError— if the given key doesn’t have any value associated with it in notification message.
hasKey()
Check if this notification message contains the given key.boolhasKey(stringkey)
Parameters
key
string — Required
The key to look for.
Returns
bool
True if the key is present, false if not.

