Interface

LazyLayoutKeyIndexMap

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

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.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: