public class SynchronousResultReceiver extends ResultReceiver
Modifier and Type | Class and Description |
---|---|
static class |
SynchronousResultReceiver.Result |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CREATOR
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
SynchronousResultReceiver() |
Modifier and Type | Method and Description |
---|---|
SynchronousResultReceiver.Result |
awaitResult(long timeoutMillis)
Blocks waiting for the result from the remote client.
|
protected void |
onReceiveResult(int resultCode,
Bundle resultData)
Override to receive results delivered to this object.
|
describeContents, send, writeToParcel
protected final void onReceiveResult(int resultCode, Bundle resultData)
ResultReceiver
onReceiveResult
in class ResultReceiver
resultCode
- Arbitrary result code delivered by the sender, as
defined by the sender.resultData
- Any additional data provided by the sender.public SynchronousResultReceiver.Result awaitResult(long timeoutMillis) throws TimeoutException
TimeoutException
- if the timeout in milliseconds expired.