The Android Developer Challenge is back! Submit your idea before December 2.

ResultCallback

open class ResultCallback
kotlin.Any
   ↳ androidx.leanback.widget.PlaybackSeekDataProvider.ResultCallback

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

Summary

Public constructors

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

Public methods

open Unit
onThumbnailLoaded(bitmap: Bitmap!, index: Int)

Client of thumbnail bitmap being loaded.

Public constructors

<init>

ResultCallback()

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

Public methods

onThumbnailLoaded

open fun onThumbnailLoaded(bitmap: Bitmap!, index: Int): Unit

Client of thumbnail bitmap being loaded. PlaybackSeekDataProvider must invoke this method in UI thread such as in android.os.AsyncTask#onPostExecute(Object).

Parameters
bitmap Bitmap!: Result of bitmap.
index Bitmap!: Index of getSeekPositions().