Partager via


RemoteControlClient.MetadataEditor.Clear Method

Definition

Caution

Use MediaMetadata instead together with MediaSession.

Clears all the metadata that has been set since the MetadataEditor instance was created (with RemoteControlClient#editMetadata(boolean)).

[Android.Runtime.Register("clear", "()V", "GetClearHandler")]
[System.Obsolete("Use MediaMetadata instead together with MediaSession.")]
public override void Clear ();
[<Android.Runtime.Register("clear", "()V", "GetClearHandler")>]
[<System.Obsolete("Use MediaMetadata instead together with MediaSession.")>]
override this.Clear : unit -> unit
Attributes

Remarks

Clears all the metadata that has been set since the MetadataEditor instance was created (with RemoteControlClient#editMetadata(boolean)). Note that clearing the metadata doesn't reset the editable keys (use MediaMetadataEditor#removeEditableKeys() instead).

Java documentation for android.media.RemoteControlClient.MetadataEditor.clear().

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