Language

AccessibilityNodeInfo.WriteToParcel(Parcel, ParcelableWriteFlags) Method

Definition

Flatten this object in to a Parcel.

[Android.Runtime.Register("writeToParcel", "(Landroid/os/Parcel;I)V", "GetWriteToParcel_Landroid_os_Parcel_IHandler")]
public virtual void WriteToParcel(Android.OS.Parcel? parcel, Android.OS.ParcelableWriteFlags flags);
[<Android.Runtime.Register("writeToParcel", "(Landroid/os/Parcel;I)V", "GetWriteToParcel_Landroid_os_Parcel_IHandler")>]
abstract member WriteToParcel : Android.OS.Parcel * Android.OS.ParcelableWriteFlags -> unit
override this.WriteToParcel : Android.OS.Parcel * Android.OS.ParcelableWriteFlags -> unit

Parameters

parcel
Parcel

The Parcel in which the object should be written.

flags
ParcelableWriteFlags

Additional flags about how the object should be written. May be 0 or ParcelableWriteReturnValue.

Implements

Attributes

Remarks

Flatten this object in to a Parcel.

Note: On Android 12L (API level 32) and earlier, the instance is recycled after it is written to a parcel, and you must not touch the object after calling this function. On Android 13 (API level 33) and later, this method does not recycle the instance.

Java documentation for android.view.accessibility.AccessibilityNodeInfo.writeToParcel(android.os.Parcel, int).

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