Aracılığıyla paylaş


MediaFormat.GetNumber Method

Definition

Overloads

GetNumber(String)

Returns the value of a numeric key.

GetNumber(String, Number)

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

GetNumber(String)

Returns the value of a numeric key.

[Android.Runtime.Register("getNumber", "(Ljava/lang/String;)Ljava/lang/Number;", "", ApiSince=29)]
public Java.Lang.Number? GetNumber (string name);
[<Android.Runtime.Register("getNumber", "(Ljava/lang/String;)Ljava/lang/Number;", "", ApiSince=29)>]
member this.GetNumber : string -> Java.Lang.Number

Parameters

name
String

Returns

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

Attributes

Remarks

Returns the value of a numeric key. This is provided as a convenience method for keys that may take multiple numeric types, such as #KEY_FRAME_RATE, or #KEY_I_FRAME_INTERVAL.

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

GetNumber(String, Number)

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

[Android.Runtime.Register("getNumber", "(Ljava/lang/String;Ljava/lang/Number;)Ljava/lang/Number;", "", ApiSince=29)]
public Java.Lang.Number GetNumber (string name, Java.Lang.Number defaultValue);
[<Android.Runtime.Register("getNumber", "(Ljava/lang/String;Ljava/lang/Number;)Ljava/lang/Number;", "", ApiSince=29)>]
member this.GetNumber : string * Java.Lang.Number -> Java.Lang.Number

Parameters

name
String
defaultValue
Number

Returns

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

Attributes

Remarks

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

Java documentation for android.media.MediaFormat.getNumber(java.lang.String, java.lang.Number).

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