Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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()

string getStringValue(string key)
Gets the value for the given key.

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()

bool hasKey(string key)
Check if this notification message contains the given key.

Parameters

key
string — Required The key to look for.

Returns

bool True if the key is present, false if not.
Last modified on October 29, 2026