lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey
added in version 25.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

PlaybackGlue.PlayerCallback

public static abstract class PlaybackGlue.PlayerCallback
extends Object

java.lang.Object
   ↳ android.support.v17.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 isPrepared() changed.

Inherited methods

From class java.lang.Object

Public constructors

PlaybackGlue.PlayerCallback

added in version 25.1.0
PlaybackGlue.PlayerCallback ()

Public methods

onPlayCompleted

added in version 26.1.0
void onPlayCompleted (PlaybackGlue glue)

Event of the current media is finished.

Parameters
glue PlaybackGlue: The PlaybackGlue that has finished current media playing.

onPlayStateChanged

added in version 26.1.0
void onPlayStateChanged (PlaybackGlue glue)

Event for Play/Pause state change. See isPlaying()}.

Parameters
glue PlaybackGlue: The PlaybackGlue that has changed playing or pausing state.

onPreparedStateChanged

added in version 26.1.0
void onPreparedStateChanged (PlaybackGlue glue)

Event for isPrepared() changed.

Parameters
glue PlaybackGlue: The PlaybackGlue that has changed isPrepared().