BaseBundle.GetDouble Method

Definition

Overloads

GetDouble(String, Double)

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

GetDouble(String)

Returns the value associated with the given key, or 0.

GetDouble(String, Double)

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

[Android.Runtime.Register("getDouble", "(Ljava/lang/String;D)D", "GetGetDouble_Ljava_lang_String_DHandler")]
public virtual double GetDouble (string? key, double defaultValue);
[<Android.Runtime.Register("getDouble", "(Ljava/lang/String;D)D", "GetGetDouble_Ljava_lang_String_DHandler")>]
abstract member GetDouble : string * double -> double
override this.GetDouble : string * double -> double

Parameters

key
String

a String

defaultValue
Double

Value to return if key does not exist

Returns

a double value

Attributes

Remarks

Returns the value associated with the given key, or defaultValue if no mapping of the desired type exists for the given key.

Java documentation for android.os.BaseBundle.getDouble(java.lang.String, double).

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

GetDouble(String)

Returns the value associated with the given key, or 0.

[Android.Runtime.Register("getDouble", "(Ljava/lang/String;)D", "GetGetDouble_Ljava_lang_String_Handler")]
public virtual double GetDouble (string? key);
[<Android.Runtime.Register("getDouble", "(Ljava/lang/String;)D", "GetGetDouble_Ljava_lang_String_Handler")>]
abstract member GetDouble : string -> double
override this.GetDouble : string -> double

Parameters

key
String

a String

Returns

a double value

Attributes

Remarks

Returns the value associated with the given key, or 0.0 if no mapping of the desired type exists for the given key.

Java documentation for android.os.BaseBundle.getDouble(java.lang.String).

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