Share via


MediaFormat.GetString Method

Definition

Overloads

GetString(String)

Returns the value of a string key.

GetString(String, String)

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

GetString(String)

Returns the value of a string key.

[Android.Runtime.Register("getString", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public string? GetString (string name);
[<Android.Runtime.Register("getString", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
member this.GetString : string -> string

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 string key.

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

GetString(String, String)

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

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

Parameters

name
String
defaultValue
String

Returns

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

Attributes

Remarks

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

Java documentation for android.media.MediaFormat.getString(java.lang.String, 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