次の方法で共有


BaseBundle.PutBoolean(String, Boolean) Method

Definition

Inserts a Boolean value into the mapping of this Bundle, replacing any existing value for the given key.

[Android.Runtime.Register("putBoolean", "(Ljava/lang/String;Z)V", "GetPutBoolean_Ljava_lang_String_ZHandler", ApiSince=22)]
public virtual void PutBoolean (string? key, bool value);
[<Android.Runtime.Register("putBoolean", "(Ljava/lang/String;Z)V", "GetPutBoolean_Ljava_lang_String_ZHandler", ApiSince=22)>]
abstract member PutBoolean : string * bool -> unit
override this.PutBoolean : string * bool -> unit

Parameters

key
String

a String, or null

value
Boolean

a boolean

Attributes

Remarks

Inserts a Boolean value into the mapping of this Bundle, replacing any existing value for the given key. Either key or value may be null.

Java documentation for android.os.BaseBundle.putBoolean(java.lang.String, 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