Sdílet prostřednictvím


Message.Obj Property

Definition

An arbitrary object to send to the recipient.

[Android.Runtime.Register("obj")]
public Java.Lang.Object? Obj { get; set; }
[<Android.Runtime.Register("obj")>]
member this.Obj : Java.Lang.Object with get, set

Property Value

Attributes

Remarks

An arbitrary object to send to the recipient. When using Messenger to send the message across processes this can only be non-null if it contains a Parcelable of a framework class (not one implemented by the application). For other data transfer use #setData.

Note that Parcelable objects here are not supported prior to the android.os.Build.VERSION_CODES#FROYO release.

Java documentation for android.os.Message.obj.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to