语言

Parcel.WriteBoolean(Boolean) 方法

定义

根据需要将布尔值写入当前 dataPosition()、不断增长的 dataCapacity()的地块中。

[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

参数

val
Boolean

要写入的值。

属性

注解

根据需要将布尔值写入当前 dataPosition()、不断增长的 dataCapacity()的地块中。

注意:此方法当前委托为 1 或 0 的 writeInt,分别表示 true 或 false,但将来可能会更改。

Java文档android.os.Parcel.writeBoolean(boolean)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于