Function
Common
expect 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.
Android
actual fun getDefaultLazyLayoutKey(index: Int): Any