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 ITopicSubscriptionPromise

interface ITopicSubscriptionPromise
Extends com.amazon.apmf.IStandard Interface that describes the response promise of subscribeToTopicAsync/unsubscribeFromTopicAsync calls

Methods

isPending()

bool isPending()
Check whether this promise is pending.

Returns

bool A boolean value to indicate whether this promise is pending

getValue()

void getValue()
Gets the response value of the promise object. This is a blocking call until Promise is resolved/rejected. In a successful case there is no return value.

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