共用方式為


IParcelable.DescribeContents Method

Definition

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.

[Android.Runtime.Register("describeContents", "()I", "GetDescribeContentsHandler:Android.OS.IParcelableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int DescribeContents ();
[<Android.Runtime.Register("describeContents", "()I", "GetDescribeContentsHandler:Android.OS.IParcelableInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member DescribeContents : unit -> int

Returns

a bitmask indicating the set of special object types marshaled by this Parcelable object instance.

Attributes

Remarks

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of #writeToParcel(Parcel, int), the return value of this method must include the #CONTENTS_FILE_DESCRIPTOR bit.

Java documentation for android.os.Parcelable.describeContents().

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