public interface

PendingResult

com.urbanairship.PendingResult<T>

Class Overview

A generic pending result.

Summary

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.

Public Methods

public abstract void cancel ()

Cancels the pending result.

public abstract boolean isCanceled ()

Returns if the request has been canceled or not.

Returns
  • true if canceled, false otherwise.

public abstract boolean isDone ()

Returns the current state of the result.

Returns
  • true if done or canceled, false otherwise.

public abstract void onResult (ResultCallback<T> resultCallback)

Sets a callback to be called when a result is received.

Parameters
resultCallback The result callback.