Sdílet prostřednictvím


Bundle.GetDouble Method

Definition

Overloads

GetDouble(String)

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

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.0 if no mapping of the desired type exists for the given key.

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

Parameters

key
String

Returns

Attributes

Remarks

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, 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", "")]
public override double GetDouble (string? key, double defaultValue);
[<Android.Runtime.Register("getDouble", "(Ljava/lang/String;D)D", "")>]
override this.GetDouble : string * double -> double

Parameters

key
String

a String

defaultValue
Double

Value to return if key does not exist

Returns

Attributes

Remarks

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