Język

MediaFormat.GetFloat Method

Definition

Overloads

Name Description
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

The format entry key whose floating-point value is requested.

Returns

The stored single-precision floating-point value; values stored with another numeric type are not converted.

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

The format entry key whose floating-point value is requested.

defaultValue
Single

The value returned when the key is absent or its stored value is null.

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