OnMetadataUpdateListener
interfaceOnMetadataUpdateListener
| android.media.RemoteControlClient.OnMetadataUpdateListener |
Interface definition for a callback to be invoked when one of the metadata values has been updated. Implement this interface to receive metadata updates after registering your listener through RemoteControlClient.setMetadataUpdateListener(OnMetadataUpdateListener).
Summary
| Public methods | |
|---|---|
| abstract Unit |
onMetadataUpdate(key: Int, newValue: Any!)Called on the implementer to notify that the metadata field for the given key has been updated to the new value. |
Public methods
onMetadataUpdate
Added in API level 19
abstract funonMetadataUpdate(
key: Int,
newValue: Any!
): Unit
Deprecated: Deprecated in Java.
Called on the implementer to notify that the metadata field for the given key has been updated to the new value.
| Parameters | |
|---|---|
key |
Int: the identifier of the updated metadata field. |
newValue |
Any!: the Object storing the new value for the key. |