Parcel.WriteBoolean(Boolean) Method

Definition

Write a boolean value into the parcel at the current dataPosition(), growing dataCapacity() if needed.

[Android.Runtime.Register("writeBoolean", "(Z)V", "", ApiSince=29)]
public void WriteBoolean (bool val);
[<Android.Runtime.Register("writeBoolean", "(Z)V", "", ApiSince=29)>]
member this.WriteBoolean : bool -> unit

Parameters

val
Boolean
Attributes

Remarks

Write a boolean value into the parcel at the current dataPosition(), growing dataCapacity() if needed.

Note: This method currently delegates to writeInt with a value of 1 or 0 for true or false, respectively, but may change in the future.

Java documentation for android.os.Parcel.writeBoolean(boolean).

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