onGetItem

fun onGetItem(index: Int)

Will trigger the fetching and prefetching of data based on Pager configuration and state. This has to be called when the data at the index provided is being displayed (for instance when binding data and view in a list adapter logic)

Parameters

index

The index of item currently being displayed