Aracılığıyla paylaş


MediaFormat.GetInteger Method

Definition

Overloads

GetInteger(String, Int32)

Returns the value of an integer key, or the default value if the key is missing.

GetInteger(String)

Returns the value of an integer key.

GetInteger(String, Int32)

Returns the value of an integer key, or the default value if the key is missing.

[Android.Runtime.Register("getInteger", "(Ljava/lang/String;I)I", "", ApiSince=29)]
public int GetInteger (string name, int defaultValue);
[<Android.Runtime.Register("getInteger", "(Ljava/lang/String;I)I", "", ApiSince=29)>]
member this.GetInteger : string * int -> int

Parameters

name
String
defaultValue
Int32

Returns

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

Attributes

Remarks

Returns the value of an integer key, or the default value if the key is missing.

Java documentation for android.media.MediaFormat.getInteger(java.lang.String, int).

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

GetInteger(String)

Returns the value of an integer key.

[Android.Runtime.Register("getInteger", "(Ljava/lang/String;)I", "")]
public int GetInteger (string name);
[<Android.Runtime.Register("getInteger", "(Ljava/lang/String;)I", "")>]
member this.GetInteger : string -> int

Parameters

name
String

Returns

Attributes

Remarks

Returns the value of an integer key.

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