Stay organized with collections
Save and categorize content based on your preferences.
public
static
interface
RemoteControlClient.OnMetadataUpdateListener
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
void
|
onMetadataUpdate(int key, Object newValue)
Called on the implementer to notify that the metadata field for the given key has
been updated to the new value.
|
Public methods
public abstract void onMetadataUpdate (int key,
Object newValue)
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 |
Object : the Object storing the new value for the key. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# RemoteControlClient.OnMetadataUpdateListener\n\nAdded in [API level 19](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nDeprecated in [API level\n29](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nRemoteControlClient.OnMetadataUpdateListener\n============================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/RemoteControlClient.OnMetadataUpdateListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nRemoteControlClient.OnMetadataUpdateListener\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------------------|\n| android.media.RemoteControlClient.OnMetadataUpdateListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface definition for a callback to be invoked when one of the metadata values has\nbeen updated.\nImplement this interface to receive metadata updates after registering your listener\nthrough [RemoteControlClient.setMetadataUpdateListener(OnMetadataUpdateListener)](/reference/android/media/RemoteControlClient#setMetadataUpdateListener(android.media.RemoteControlClient.OnMetadataUpdateListener)).\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onMetadataUpdate](/reference/android/media/RemoteControlClient.OnMetadataUpdateListener#onMetadataUpdate(int,%20java.lang.Object))`(int key, `[Object](/reference/java/lang/Object)` newValue) ` Called on the implementer to notify that the metadata field for the given key has been updated to the new value. |\n\nPublic methods\n--------------\n\n### onMetadataUpdate\n\nAdded in [API level 19](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onMetadataUpdate (int key, \n Object newValue)\n```\n\nCalled on the implementer to notify that the metadata field for the given key has\nbeen updated to the new value.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|----------------------------------------------------------------|\n| `key` | `int`: the identifier of the updated metadata field. \u003cbr /\u003e |\n| `newValue` | `Object`: the Object storing the new value for the key. \u003cbr /\u003e |"]]