PlaybackGlue.PlayerCallback
public
static
abstract
class
PlaybackGlue.PlayerCallback
extends Object
java.lang.Object | |
↳ | androidx.leanback.media.PlaybackGlue.PlayerCallback |
Interface to allow clients to take action once the video is ready to play and start stop.
Summary
Public constructors | |
---|---|
PlayerCallback()
|
Public methods | |
---|---|
void
|
onPlayCompleted(PlaybackGlue glue)
Event of the current media is finished. |
void
|
onPlayStateChanged(PlaybackGlue glue)
Event for Play/Pause state change. |
void
|
onPreparedStateChanged(PlaybackGlue glue)
Event for |
Inherited methods | |
---|---|
Public constructors
PlayerCallback
public PlayerCallback ()
Public methods
onPlayCompleted
public void onPlayCompleted (PlaybackGlue glue)
Event of the current media is finished.
Parameters | |
---|---|
glue |
PlaybackGlue : The PlaybackGlue that has finished current media playing.
|
onPlayStateChanged
public void onPlayStateChanged (PlaybackGlue glue)
Event for Play/Pause state change. See PlaybackGlue.isPlaying()
}.
Parameters | |
---|---|
glue |
PlaybackGlue : The PlaybackGlue that has changed playing or pausing state.
|
onPreparedStateChanged
public void onPreparedStateChanged (PlaybackGlue glue)
Event for PlaybackGlue.isPrepared()
changed.
Parameters | |
---|---|
glue |
PlaybackGlue : The PlaybackGlue that has changed PlaybackGlue.isPrepared() .
|