Uri.GetBooleanQueryParameter(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.
Searches the query string for the first value with the given key and interprets it as a boolean value.
[Android.Runtime.Register("getBooleanQueryParameter", "(Ljava/lang/String;Z)Z", "GetGetBooleanQueryParameter_Ljava_lang_String_ZHandler")]
public virtual bool GetBooleanQueryParameter (string? key, bool defaultValue);
[<Android.Runtime.Register("getBooleanQueryParameter", "(Ljava/lang/String;Z)Z", "GetGetBooleanQueryParameter_Ljava_lang_String_ZHandler")>]
abstract member GetBooleanQueryParameter : string * bool -> bool
override this.GetBooleanQueryParameter : string * bool -> bool
Parameters
- key
- String
which will be decoded
- defaultValue
- Boolean
the default value to return if there is no query parameter for key
Returns
the boolean interpretation of the query parameter key
- Attributes
Remarks
Searches the query string for the first value with the given key and interprets it as a boolean value. "false" and "0" are interpreted as false
, everything else is interpreted as true
.
Java documentation for android.net.Uri.getBooleanQueryParameter(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.