Interface

LazyLayoutKeyIndexMap

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

Common
interface LazyLayoutKeyIndexMap

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

Functions

getIndex

fun getIndex(key: Any): Int

Returns

current index for given key or -1 if not found.

getKey

fun getKey(index: Int): Any?

Returns

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