java.lang.Object | |
↳ | android.support.v4.media.session.MediaControllerCompat.Callback |
Callback for receiving updates on from the session. A Callback can be
registered using registerCallback(MediaControllerCompat.Callback)
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Override to handle changes to the current metadata.
| |||||||||||
Override to handle changes in playback state.
| |||||||||||
Override to handle the session being destroyed.
| |||||||||||
Override to handle custom events sent by the session owner without a
specified interface.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Override to handle changes to the current metadata.
metadata | The current metadata for the session or null if none. |
---|
Override to handle changes in playback state.
state | The new playback state of the session |
---|
Override to handle the session being destroyed. The session is no longer valid after this call and calls to it will be ignored.
Override to handle custom events sent by the session owner without a specified interface. Controllers should only handle these for sessions they own.
event | The event from the session. |
---|---|
extras | Optional parameters for the event. |