Interface IAmazonDeviceMessagingHandlerAsync
interface IAmazonDeviceMessagingHandlerAsync
Extends com.amazon.apmf.IStandard
Interface that client application implements to handle
ADM Messages.
Methods
handleOnMessageAsync()
Handle an incoming ADM message. This method must be implemented by the client app.IHandleOnMessagePromise*handleOnMessageAsync(IAmazonDeviceMessagingMessage*message)
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
NullPointerError— if message passed is a null pointer.InvalidArgumentError— is message is malformed.

