Bundle.GetFloat Bundle.GetFloat Method

Definition

Overloads

GetFloat(String) GetFloat(String)

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

GetFloat(String, Single) GetFloat(String, Single)

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

GetFloat(String) GetFloat(String)

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

[Android.Runtime.Register("getFloat", "(Ljava/lang/String;)F", "")]
public float GetFloat (string key);
member this.GetFloat : string -> single

Parameters

key
String String

a String

Returns

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.

GetFloat(String, Single) GetFloat(String, Single)

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("getFloat", "(Ljava/lang/String;F)F", "")]
public float GetFloat (string key, float defaultValue);
member this.GetFloat : string * single -> single

Parameters

key
String String

a String

defaultValue
Single Single

Value to return if key does not exist

Returns

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