次の方法で共有


MediaMetadataEditor.PutString(MediaMetadataEditKey, String) Method

Definition

Caution

deprecated

Adds textual information.

[Android.Runtime.Register("putString", "(ILjava/lang/String;)Landroid/media/MediaMetadataEditor;", "GetPutString_ILjava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public virtual Android.Media.MediaMetadataEditor? PutString (Android.Media.MediaMetadataEditKey key, string? value);
[<Android.Runtime.Register("putString", "(ILjava/lang/String;)Landroid/media/MediaMetadataEditor;", "GetPutString_ILjava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member PutString : Android.Media.MediaMetadataEditKey * string -> Android.Media.MediaMetadataEditor
override this.PutString : Android.Media.MediaMetadataEditKey * string -> Android.Media.MediaMetadataEditor

Parameters

key
MediaMetadataEditKey

The identifier of a the metadata field to set. Valid values are android.media.MediaMetadataRetriever#METADATA_KEY_ALBUM, android.media.MediaMetadataRetriever#METADATA_KEY_ALBUMARTIST, android.media.MediaMetadataRetriever#METADATA_KEY_TITLE, android.media.MediaMetadataRetriever#METADATA_KEY_ARTIST, android.media.MediaMetadataRetriever#METADATA_KEY_AUTHOR, android.media.MediaMetadataRetriever#METADATA_KEY_COMPILATION, android.media.MediaMetadataRetriever#METADATA_KEY_COMPOSER, android.media.MediaMetadataRetriever#METADATA_KEY_DATE, android.media.MediaMetadataRetriever#METADATA_KEY_GENRE, android.media.MediaMetadataRetriever#METADATA_KEY_WRITER.

value
String

The text for the given key, or null to signify there is no valid information for the field.

Returns

Returns a reference to the same MediaMetadataEditor object, so you can chain put calls together.

Attributes

Exceptions

Remarks

Adds textual information. Note that none of the information added after #apply() has been called, will be available to consumers of metadata stored by the MediaMetadataEditor.

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