PlaybackSeekDataProvider

public class PlaybackSeekDataProvider
extends Object

java.lang.Object
   ↳ androidx.leanback.widget.PlaybackSeekDataProvider


Class to be implemented by app to provide seeking data and thumbnails to UI.

Summary

Nested classes

class PlaybackSeekDataProvider.ResultCallback

Client to receive result for PlaybackSeekDataProvider.getThumbnail(int, ResultCallback)

Public constructors

PlaybackSeekDataProvider()

Public methods

long[] getSeekPositions()

Get a list of sorted seek positions.

void getThumbnail(int index, PlaybackSeekDataProvider.ResultCallback callback)

Called to get thumbnail bitmap.

void reset()

Called when seek stops, Provider should cancel pending requests for the thumbnails.

Inherited methods

Public constructors

PlaybackSeekDataProvider

public PlaybackSeekDataProvider ()

Public methods

getSeekPositions

public long[] getSeekPositions ()

Get a list of sorted seek positions. The positions should not change after user starts seeking.

Returns
long[] A list of sorted seek positions.