Condividi tramite


MediaMetadataEditor.PutObject(MediaMetadataEditKey, Object) Method

Definition

Caution

deprecated

Adds information stored as an instance.

[Android.Runtime.Register("putObject", "(ILjava/lang/Object;)Landroid/media/MediaMetadataEditor;", "GetPutObject_ILjava_lang_Object_Handler")]
[System.Obsolete("deprecated")]
public virtual Android.Media.MediaMetadataEditor? PutObject (Android.Media.MediaMetadataEditKey key, Java.Lang.Object? value);
[<Android.Runtime.Register("putObject", "(ILjava/lang/Object;)Landroid/media/MediaMetadataEditor;", "GetPutObject_ILjava_lang_Object_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member PutObject : Android.Media.MediaMetadataEditKey * Java.Lang.Object -> Android.Media.MediaMetadataEditor
override this.PutObject : Android.Media.MediaMetadataEditKey * Java.Lang.Object -> Android.Media.MediaMetadataEditor

Parameters

key
MediaMetadataEditKey

the identifier of a the metadata field to set. Valid keys for a: <ul> <li>Bitmap object are #BITMAP_KEY_ARTWORK,</li> <li>String object are the same as for #putString(int, String)</li> <li>Long object are the same as for #putLong(int, long)</li> <li>Rating object are #RATING_KEY_BY_OTHERS and #RATING_KEY_BY_USER.</li> </ul>

value
Object

the metadata to add.

Returns

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

Attributes

Exceptions

Remarks

Adds information stored as an instance. 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.putObject(int, java.lang.Object).

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