RemoteController.MetadataEditor


public class RemoteController.MetadataEditor
extends MediaMetadataEditor

java.lang.Object
   ↳ android.media.MediaMetadataEditor
     ↳ android.media.RemoteController.MetadataEditor


A class to read the metadata published by a RemoteControlClient, or send a RemoteControlClient new values for keys that can be edited.

Summary

Inherited constants

int BITMAP_KEY_ARTWORK

The metadata key for the content artwork / album art.

int RATING_KEY_BY_OTHERS

The metadata key for the content's average rating, not the user's rating.

int RATING_KEY_BY_USER

The metadata key for the content's user rating.

Public methods

void apply()

Applies all of the metadata changes that have been set since the MediaMetadataEditor instance was created with RemoteController.editMetadata() or since MediaMetadataEditor.clear() was called.

Inherited methods

void addEditableKey(int key)

Flags the given key as being editable.

abstract void apply()

Applies all of the metadata changes that have been set since the MediaMetadataEditor instance was created or since clear() was called.

void clear()

Clears all the pending metadata changes set since the MediaMetadataEditor instance was created or since this method was last called.

Bitmap getBitmap(int key, Bitmap defaultValue)

Returns the Bitmap value for the key.

int[] getEditableKeys()

Retrieves the keys flagged as editable.

long getLong(int key, long defaultValue)

Returns the long value for the key.

Object getObject(int key, Object defaultValue)

Returns an object representation of the value for the key

String getString(int key, String defaultValue)

Returns the String value for the key.

MediaMetadataEditor putBitmap(int key, Bitmap bitmap)

Adds image.

MediaMetadataEditor putLong(int key, long value)

Adds numerical information.

MediaMetadataEditor putObject(int key, Object value)

Adds information stored as an instance.

MediaMetadataEditor putString(int key, String value)

Adds textual information.

void removeEditableKeys()

Causes all metadata fields to be read-only.

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public methods

apply

Added in API level 19
public void apply ()

Applies all of the metadata changes that have been set since the MediaMetadataEditor instance was created with RemoteController.editMetadata() or since MediaMetadataEditor.clear() was called.