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 IAmazonDeviceMessagingHandlerAsync

interface IAmazonDeviceMessagingHandlerAsync
Extends com.amazon.apmf.IStandard Interface that client application implements to handle ADM Messages.

Methods

handleOnMessageAsync()

IHandleOnMessagePromise* handleOnMessageAsync(IAmazonDeviceMessagingMessage* message)
Handle an incoming ADM message. This method must be implemented by the client app.

Parameters

message
IAmazonDeviceMessagingMessage* — Required An incoming message.

Returns

IHandleOnMessagePromise* A Promise indicating the success or failure of message handling. The client app is responsible for resolving or rejecting this Promise.

Throws

ADM Server role is fulfilled upon delivering messages to MessageHandler. In the event of any errors encountered during handling of message by client app, ADM server will ignore them.
Last modified on October 29, 2026