LazyLayoutKeyIndexMap

Interface

Common
interface LazyLayoutKeyIndexMap

A key-index mapping that can be used by the LazyLayoutItemProvider to keep track of indices and keys in LazyLayout.

Functions

fun getIndex(key: Any): Int

Returns

current index for given key or -1 if not found.
fun getKey(index: Int): Any?

Returns

key for a given index if it is known, or null otherwise.