lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey

belongs to Maven artifact androidx.leanback:leanback:1.0.0-alpha3

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

PlaybackGlue.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 PlaybackGlue.isPrepared() changed.

Inherited methods

Public constructors

PlaybackGlue.PlayerCallback

public PlaybackGlue.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().