PlayerCallback

abstract class PlayerCallback
kotlin.Any
   ↳ 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

Public methods
open Unit

Event for Play/Pause state change.

open Unit

Event for #isPrepared() changed.

open Unit

Event of the current media is finished.

Public constructors

<init>

PlayerCallback()

Public methods

onPlayStateChanged

open fun onPlayStateChanged(glue: PlaybackGlue!): Unit

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

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

onPreparedStateChanged

open fun onPreparedStateChanged(glue: PlaybackGlue!): Unit

Event for #isPrepared() changed.

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

onPlayCompleted

open fun onPlayCompleted(glue: PlaybackGlue!): Unit

Event of the current media is finished.

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