Callback
abstract class Callback : DeathRecipient
kotlin.Any | |
↳ | android.support.v4.media.session.MediaControllerCompat.Callback |
Callback for receiving updates on from the session. A Callback can be registered using registerCallback
Summary
Public constructors |
|
---|---|
<init>() |
Public methods |
|
---|---|
open Unit | |
open Unit |
Override to handle changes to the audio info. |
open Unit |
onCaptioningEnabledChanged(enabled: Boolean) Override to handle changes to the captioning enabled status. |
open Unit |
onExtrasChanged(extras: Bundle!) Override to handle changes to the |
open Unit |
onMetadataChanged(metadata: MediaMetadataCompat!) Override to handle changes to the current metadata. |
open Unit |
Override to handle changes in playback state. |
open Unit |
Override to handle changes to items in the queue. |
open Unit |
onQueueTitleChanged(title: CharSequence!) Override to handle changes to the queue title. |
open Unit |
onRepeatModeChanged(repeatMode: Int) Override to handle changes to the repeat mode. |
open Unit |
Override to handle the session being destroyed. |
open Unit |
onSessionEvent(event: String!, extras: Bundle!) Override to handle custom events sent by the session owner without a specified interface. |
open Unit |
Override to handle the session being ready. |
open Unit |
onShuffleModeChanged(shuffleMode: Int) Override to handle changes to the shuffle mode. |
Public constructors
<init>
Callback()
Public methods
binderDied
open fun binderDied(): Unit
onAudioInfoChanged
open fun onAudioInfoChanged(info: MediaControllerCompat.PlaybackInfo!): Unit
Override to handle changes to the audio info.
Parameters | |
---|---|
info |
MediaControllerCompat.PlaybackInfo!: The current audio info for this session. |
onCaptioningEnabledChanged
open fun onCaptioningEnabledChanged(enabled: Boolean): Unit
Override to handle changes to the captioning enabled status.
Parameters | |
---|---|
enabled |
Boolean: true if captioning is enabled, false otherwise. |
onExtrasChanged
open fun onExtrasChanged(extras: Bundle!): Unit
Override to handle changes to the MediaSessionCompat
extras.
Parameters | |
---|---|
extras |
Bundle!: The extras that can include other information associated with the MediaSessionCompat . |
onMetadataChanged
open fun onMetadataChanged(metadata: MediaMetadataCompat!): Unit
Override to handle changes to the current metadata.
Parameters | |
---|---|
metadata |
MediaMetadataCompat!: The current metadata for the session or null if none. |
See Also
onPlaybackStateChanged
open fun onPlaybackStateChanged(state: PlaybackStateCompat!): Unit
Override to handle changes in playback state.
Parameters | |
---|---|
state |
PlaybackStateCompat!: The new playback state of the session |
onQueueChanged
open fun onQueueChanged(