PlayerAdapter.Callback

public static class PlayerAdapter.Callback
extends Object

java.lang.Object
   ↳ androidx.leanback.media.PlayerAdapter.Callback


Client for client of PlayerAdapter.

Summary

Public constructors

Callback()

Public methods

void onBufferedPositionChanged(PlayerAdapter adapter)

Event for PlayerAdapter.getBufferedPosition() changed.

void onBufferingStateChanged(PlayerAdapter adapter, boolean start)

Event for buffering start or stop.

void onCurrentPositionChanged(PlayerAdapter adapter)

Event for PlayerAdapter.getCurrentPosition() changed.

void onDurationChanged(PlayerAdapter adapter)

Event for PlayerAdapter.getDuration() changed.

void onError(PlayerAdapter adapter, int errorCode, String errorMessage)

Event for error.

void onMetadataChanged(PlayerAdapter adapter)

Event for meta data changed.

void onPlayCompleted(PlayerAdapter adapter)

Client when the current media is finished.

void onPlayStateChanged(PlayerAdapter adapter)

Client for Play/Pause state change.

void onPreparedStateChanged(PlayerAdapter adapter)

Client for PlayerAdapter.isPrepared() changed.

void onVideoSizeChanged(PlayerAdapter adapter, int width, int height)

Event for video size changed.

Inherited methods