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 IRegistrationIdPromise

interface IRegistrationIdPromise
Extends com.amazon.apmf.IStandard Interface that describes the response promise of registerAsync/unregisterAsync calls

Methods

isPending()

bool isPending()
Check whether this promise is pending.

Returns

bool A boolean value to indicate whether this promise is pending

getValue()

string getValue()
Gets the registrationId. This is a blocking call until Promise is resolved/rejected.

Returns

string registrationId for the registerAsync call, unregistered registrationId for unregisterAsync call if the Promise resolves.

Throws

  • IError — if the Promise is rejected

getError()

com.amazon.apmf.IError? getError()
Waits until the promise is resolved and return the error if it exists or null otherwise.

Returns

com.amazon.apmf.IError? The return value is optional and might be absent. An IError object
Last modified on October 29, 2026