Share via


MediaFormat.GetFloat Method

Definition

Overloads

GetFloat(String)

Returns the value of a float key.

GetFloat(String, Single)

Returns the value of a float key, or the default value if the key is missing.

GetFloat(String)

Returns the value of a float key.

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

Parameters

name
String

Returns

Attributes

Remarks

Returns the value of a float key.

Java documentation for android.media.MediaFormat.getFloat(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

GetFloat(String, Single)

Returns the value of a float key, or the default value if the key is missing.

[Android.Runtime.Register("getFloat", "(Ljava/lang/String;F)F", "", ApiSince=29)]
public float GetFloat (string name, float defaultValue);
[<Android.Runtime.Register("getFloat", "(Ljava/lang/String;F)F", "", ApiSince=29)>]
member this.GetFloat : string * single -> single

Parameters

name
String
defaultValue
Single

Returns

defaultValue if the key does not exist or the stored value for the key is null

Attributes

Remarks

Returns the value of a float key, or the default value if the key is missing.

Java documentation for android.media.MediaFormat.getFloat(java.lang.String, float).

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