AbstractPreferences.PutBoolean(String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implements the putBoolean
method as per the specification in
Preferences#putBoolean(String,boolean)
.
[Android.Runtime.Register("putBoolean", "(Ljava/lang/String;Z)V", "GetPutBoolean_Ljava_lang_String_ZHandler")]
public override void PutBoolean (string? key, bool value);
[<Android.Runtime.Register("putBoolean", "(Ljava/lang/String;Z)V", "GetPutBoolean_Ljava_lang_String_ZHandler")>]
override this.PutBoolean : string * bool -> unit
Parameters
- key
- String
key with which the string form of value is to be associated.
- value
- Boolean
value whose string form is to be associated with key.
- Attributes
Remarks
Implements the putBoolean
method as per the specification in Preferences#putBoolean(String,boolean)
.
This implementation translates value
to a string with String#valueOf(boolean)
and invokes #put(String,String)
on the result.
Java documentation for java.util.prefs.AbstractPreferences.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.