Udostępnij za pośrednictwem


Uri.DescribeContents Method

Definition

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

[Android.Runtime.Register("describeContents", "()I", "GetDescribeContentsHandler")]
public abstract int DescribeContents ();
[<Android.Runtime.Register("describeContents", "()I", "GetDescribeContentsHandler")>]
abstract member DescribeContents : unit -> int

Returns

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

Implements

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