Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

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

Interface to allow clients to take action once the video is ready to play and start stop.

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()

Interface to allow clients to take action once the video is ready to play and start stop.

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.