ResultCallback
open class ResultCallback
kotlin.Any | |
↳ | androidx.leanback.widget.PlaybackSeekDataProvider.ResultCallback |
Client to receive result for PlaybackSeekDataProvider#getThumbnail(int, * ResultCallback)
.
Summary
Public constructors | |
---|---|
<init>() Client to receive result for |
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 |
Int: Index of getSeekPositions() . |