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