Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# RemoteControlClient.OnMetadataUpdateListener

*** ** * ** ***

` public static interface RemoteControlClient.OnMetadataUpdateListener `   
` `

|---|
| android.media.RemoteControlClient.OnMetadataUpdateListener |

<br />

*** ** * ** ***

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 `https://developer.android.com/reference/android/media/RemoteControlClient#setMetadataUpdateListener(android.media.RemoteControlClient.OnMetadataUpdateListener)`.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/media/RemoteControlClient.OnMetadataUpdateListener#onMetadataUpdate(int,%20java.lang.Object)(int key, https://developer.android.com/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. |

## Public methods

### onMetadataUpdate

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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.

<br />

| Parameters ||
|---|---|
| `key` | `int`: the identifier of the updated metadata field. <br /> |
| `newValue` | `Object`: the Object storing the new value for the key. <br /> |