com.urbanairship.PendingResult<T> |
A generic pending result.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | PendingResult.ResultCallback<T> | Result callback interface. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
cancel()
Cancels the pending result.
| ||||||||||
abstract boolean |
isCanceled()
Returns if the request has been canceled or not.
| ||||||||||
abstract boolean |
isDone()
Returns the current state of the result.
| ||||||||||
abstract void |
onResult(ResultCallback<T> resultCallback)
Sets a callback to be called when a result is received.
|
Cancels the pending result.
Returns if the request has been canceled or not.
true
if canceled, false
otherwise.
Returns the current state of the result.
true
if done or canceled, false
otherwise.
Sets a callback to be called when a result is received.
resultCallback | The result callback. |
---|