Returns

public
abstract
Throwable
getFailureCause()

Returns

failure cause if the source has failed, else null

public
abstract
float
getProgress()

Returns

progress in range [0, 1]

public
abstract
T
getResult()

The most recent result of the asynchronous computation.

The caller gains ownership of the object and is responsible for releasing it.
Note that subsequent calls to getResult might give different results. Later results should be
considered to be of higher quality.

This method will return null in the following cases:

when the DataSource does not have a result (hasResult returns false).

when the last result produced was null.

Returns

current best result

public
abstract
boolean
hasFailed()

Returns

true if request finished due to error

public
abstract
boolean
hasResult()

Returns

true if any result (possibly of lower quality) is available right now, false otherwise