Function

getDefaultLazyLayoutKey

getDefaultLazyLayoutKey

Source set: Android
public fun getDefaultLazyLayoutKey(index: Int): Any

getDefaultLazyLayoutKey

Source set: Common
@Suppress("MissingNullability") public fun getDefaultLazyLayoutKey(index: Int): Any

This creates an object meeting following requirements: 1) Objects created for the same index are equals and never equals for different indexes. 2) This class is saveable via a default SaveableStateRegistry on the platform. 3) This objects can't be equals to any object which could be provided by a user as a custom key.

Note: this function is a part of LazyLayout harness that allows for building custom lazy layouts. LazyLayout and all corresponding APIs are still under development and are subject to change.

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: