Source set: Common
public interface LazyLayoutKeyIndexMap
A key-index mapping that can be used by the LazyLayoutItemProvider to keep track of indices and keys in LazyLayout.
Functions
getIndex
Source set: Common
public fun getIndex(key: Any): Int
Return
current index for given key or -1 if not found.
getKey
Source set: Common
public fun getKey(index: Int): Any?
Return
key for a given index if it is known, or null otherwise.