java.lang.Object | |
↳ | android.media.RemoteControlClient.MetadataEditor |
Class used to modify metadata in a RemoteControlClient
object.
Use editMetadata(boolean)
to create an instance of an editor,
on which you set the metadata for the RemoteControlClient instance. Once all the information
has been set, use apply()
to make it the new metadata that should be displayed
for the associated client. Once the metadata has been "applied", you cannot reuse this
instance of the MetadataEditor.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | BITMAP_KEY_ARTWORK | The metadata key for the content artwork / album art. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Associates all the metadata that has been set since the MetadataEditor instance was
created with
editMetadata(boolean) , or since
clear() was called, with the RemoteControlClient. | |||||||||||
Clears all the metadata that has been set since the MetadataEditor instance was
created with
editMetadata(boolean) . | |||||||||||
Sets the album / artwork picture to be displayed on the remote control.
| |||||||||||
Adds numerical information to be displayed.
| |||||||||||
Adds textual information to be displayed.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The metadata key for the content artwork / album art.
Associates all the metadata that has been set since the MetadataEditor instance was
created with editMetadata(boolean)
, or since
clear()
was called, with the RemoteControlClient. Once "applied",
this MetadataEditor cannot be reused to edit the RemoteControlClient's metadata.
Clears all the metadata that has been set since the MetadataEditor instance was
created with editMetadata(boolean)
.
Sets the album / artwork picture to be displayed on the remote control.
key | the identifier of the bitmap to set. The only valid value is
BITMAP_KEY_ARTWORK |
---|---|
bitmap | The bitmap for the artwork, or null if there isn't any. |
IllegalArgumentException | |
IllegalArgumentException |
Adds numerical information to be displayed.
Note that none of the information added after apply()
has been called,
will be displayed.
key | the identifier of a the metadata field to set. Valid values are
METADATA_KEY_CD_TRACK_NUMBER ,
METADATA_KEY_DISC_NUMBER ,
METADATA_KEY_DURATION (with a value
expressed in milliseconds),
METADATA_KEY_YEAR . |
---|---|
value | The long value for the given key |
IllegalArgumentException |
---|
Adds textual information to be displayed.
Note that none of the information added after apply()
has been called,
will be displayed.
key | The identifier of a the metadata field to set. Valid values are
METADATA_KEY_ALBUM ,
METADATA_KEY_ALBUMARTIST ,
METADATA_KEY_TITLE ,
METADATA_KEY_ARTIST ,
METADATA_KEY_AUTHOR ,
METADATA_KEY_COMPILATION ,
METADATA_KEY_COMPOSER ,
METADATA_KEY_DATE ,
METADATA_KEY_GENRE ,
METADATA_KEY_TITLE ,
METADATA_KEY_WRITER . |
---|---|
value | The text for the given key, or null to signify there is no valid
information for the field. |
IllegalArgumentException |
---|