# PlaybackSeekDataProvider.ResultCallback

# PlaybackSeekDataProvider.ResultCallback

Artifact:[androidx.leanback:leanback](https://developer.android.com/jetpack/androidx/releases/leanback)  
[View Source](https://cs.android.com/search?q=file:androidx/leanback/widget/PlaybackSeekDataProvider.java+class:androidx.leanback.widget.PlaybackSeekDataProvider.ResultCallback)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/leanback/widget/PlaybackSeekDataProvider.ResultCallback "View this page in Java")

<br />

```
class PlaybackSeekDataProvider.ResultCallback
```

<br />

*** ** * ** ***

Client to receive result for[getThumbnail](https://developer.android.com/reference/kotlin/androidx/leanback/widget/PlaybackSeekDataProvider#getThumbnail(int,androidx.leanback.widget.PlaybackSeekDataProvider.ResultCallback)).

## Summary

|                                                                ### Public constructors                                                                 |
|--------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ResultCallback](https://developer.android.com/reference/kotlin/androidx/leanback/widget/PlaybackSeekDataProvider.ResultCallback#ResultCallback())`()` |

|                             ### Public functions                              |
|-------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [onThumbnailLoaded](https://developer.android.com/reference/kotlin/androidx/leanback/widget/PlaybackSeekDataProvider.ResultCallback#onThumbnailLoaded(android.graphics.Bitmap,int))`(bitmap: `[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html)`!, index: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Client of thumbnail bitmap being loaded. |

## Public constructors

### ResultCallback

Added in 1.1.0  

```
ResultCallback()
```  

## Public functions

### onThumbnailLoaded

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)  

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

Client of thumbnail bitmap being loaded. PlaybackSeekDataProvider must invoke this method in UI thread such as in[onPostExecute](https://developer.android.com/reference/android/os/AsyncTask.html#onPostExecute(Result)).  

|                                         Parameters                                          |
|---------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|
| `bitmap: `[Bitmap](https://developer.android.com/reference/android/graphics/Bitmap.html)`!` | Result of bitmap.                                                                                                                                |
| `index: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)        | Index of[getSeekPositions](https://developer.android.com/reference/kotlin/androidx/leanback/widget/PlaybackSeekDataProvider#getSeekPositions()). |