Sdílet prostřednictvím


MediaMetadataEditor.AddEditableKey(MediaMetadataEditKey) Method

Definition

Caution

deprecated

Flags the given key as being editable.

[Android.Runtime.Register("addEditableKey", "(I)V", "GetAddEditableKey_IHandler")]
[System.Obsolete("deprecated")]
public virtual void AddEditableKey (Android.Media.MediaMetadataEditKey key);
[<Android.Runtime.Register("addEditableKey", "(I)V", "GetAddEditableKey_IHandler")>]
[<System.Obsolete("deprecated")>]
abstract member AddEditableKey : Android.Media.MediaMetadataEditKey -> unit
override this.AddEditableKey : Android.Media.MediaMetadataEditKey -> unit

Parameters

key
MediaMetadataEditKey

the type of metadata that can be edited. The supported key is #RATING_KEY_BY_USER.

Attributes

Remarks

Flags the given key as being editable. This should only be used by metadata publishers, such as RemoteControlClient, which will declare the metadata field as eligible to be updated, with new values received through the RemoteControlClient.OnMetadataUpdateListener interface.

Java documentation for android.media.MediaMetadataEditor.addEditableKey(int).

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