putBoolean

abstract fun putBoolean(key: String, value: Boolean)

在对象中添加或更新一个键值对,值为 Boolean

Parameters

key

键名。

value

要设置的布尔值。