Android Guides | Samples

Android.OS.ResultReceiver Class

Generic interface for receiving a callback result from someone.

See Also: ResultReceiver

Syntax

[Android.Runtime.Register("android/os/ResultReceiver", DoNotGenerateAcw=true)]
public class ResultReceiver : Object, IParcelable, IDisposable

Remarks

Generic interface for receiving a callback result from someone. Use this by creating a subclass and implement ResultReceiver.OnReceiveResult(Int32,Bundle), which you can then pass to others and send through IPC, and receive results they supply with ResultReceiver.Send(Result,Bundle).

Note: the implementation underneath is just a simple wrapper around a Binder that is used to perform the communication. This means semantically you should treat it as such: this class does not impact process lifecycle management (you must be using some higher-level component to tell the system that your process needs to continue running), the connection will break if your process goes away for any reason, etc.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3

The members of Android.OS.ResultReceiver are listed below.

See Also: Object

Public Constructors

Create a new ResultReceive to receive results.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
static
CreatorIParcelableCreator.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Send(Result, Bundle)
Deliver a result to this receiver.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.

Protected Methods

OnReceiveResult(Int32, Bundle)
Override to receive results delivered to this object.