R - public abstract class PendingResult<R extends Result>
extends java.lang.Object
LocationServices.| Constructor and Description |
|---|
PendingResult() |
| Modifier and Type | Method and Description |
|---|---|
abstract R |
await()
Receive a result using this blocking call.
|
abstract R |
await(long time,
java.util.concurrent.TimeUnit timeUnit)
Receive a result using this blocking call and timeout.
|
abstract void |
cancel()
Cancel the result.
|
abstract boolean |
isCanceled()
Is the result cancelled.
|
abstract void |
setResultCallback(ResultCallback<? super R> callback)
Receive a result asynchronously given a
ResultCallback. |
abstract void |
setResultCallback(ResultCallback<? super R> callback,
long time,
java.util.concurrent.TimeUnit timeUnit)
Receive a result asynchronously given a
ResultCallback and timeout. |
public abstract R await()
public abstract R await(long time, java.util.concurrent.TimeUnit timeUnit)
time - amount of time to issue timeout fortimeUnit - unit that time is inpublic abstract void cancel()
public abstract boolean isCanceled()
public abstract void setResultCallback(ResultCallback<? super R> callback)
ResultCallback.callback - to receive result.public abstract void setResultCallback(ResultCallback<? super R> callback, long time, java.util.concurrent.TimeUnit timeUnit)
ResultCallback and timeout.callback - to receive result.time - amount of time to issue timeout fortimeUnit - unit that time is in