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()
Waits until the promise is resolved and return the error if it exists or null otherwise.com.amazon.apmf.IError?getError()
Returns
com.amazon.apmf.IError?
The return value is optional and might be absent.
An IError object

