MediaMetadata.GetString(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the text value associated with the given key as a String, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key.
[Android.Runtime.Register("getString", "(Ljava/lang/String;)Ljava/lang/String;", "")]
public string? GetString (string? key);
[<Android.Runtime.Register("getString", "(Ljava/lang/String;)Ljava/lang/String;", "")>]
member this.GetString : string -> string
Parameters
- key
- String
The key the value is stored under
Returns
a String value, or null
- Attributes
Remarks
Returns the text value associated with the given key as a String, or null if no mapping of the desired type exists for the given key or a null value is explicitly associated with the key. This is equivalent to calling #getText getText().toString()
if the value is not null.
Java documentation for android.media.MediaMetadata.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.