Aracılığıyla paylaş


MediaMetadataEditor.GetString(MediaMetadataEditKey, String) Method

Definition

Caution

deprecated

Returns the String value for the key.

[Android.Runtime.Register("getString", "(ILjava/lang/String;)Ljava/lang/String;", "GetGetString_ILjava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public virtual string? GetString (Android.Media.MediaMetadataEditKey key, string? defaultValue);
[<Android.Runtime.Register("getString", "(ILjava/lang/String;)Ljava/lang/String;", "GetGetString_ILjava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member GetString : Android.Media.MediaMetadataEditKey * string -> string
override this.GetString : Android.Media.MediaMetadataEditKey * string -> string

Parameters

key
MediaMetadataEditKey

one of the keys supported in #putString(int, String)

defaultValue
String

the value returned if the key is not present

Returns

the String value for the key, or the supplied default value if the key is not present

Attributes

Exceptions

Remarks

Returns the String value for the key.

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