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 IHandleOnMessagePromise

interface IHandleOnMessagePromise
Extends com.amazon.apmf.IStandard Interface used by a client app to indicate success or failure of message handling.

Methods

resolve()

void resolve()
Called to indicate successful handling of message.

reject()

void reject(com.amazon.apmf.IError* error)
Called to indicate failure in handling of message.

Parameters

error
com.amazon.apmf.IError* — Required indicating the reason for failure.
Last modified on October 29, 2026