java.lang.Object | |
↳ | android.media.session.MediaController.Callback |
Callback for receiving updates on from the session. A Callback can be
registered using registerCallback(MediaController.Callback)
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Override to handle changes to the audio info.
| |||||||||||
Override to handle changes to the
MediaSession extras.
| |||||||||||
Override to handle changes to the current metadata.
| |||||||||||
Override to handle changes in playback state.
| |||||||||||
Override to handle changes to items in the queue.
| |||||||||||
Override to handle changes to the queue title.
| |||||||||||
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 audio info.
info | The current audio info for this session. |
---|
Override to handle changes to the MediaSession
extras.
extras | The extras that can include other information associated with the
MediaSession .
|
---|
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 changes to items in the queue.
queue | A list of items in the current play queue. It should include the currently playing item as well as previous and upcoming items if applicable. |
---|
Override to handle changes to the queue title.
title | The title that should be displayed along with the play queue such as "Now Playing". May be null if there is no such title. |
---|
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, may be null. |