---
title: "getDefaultLazyLayoutKey"
description: "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."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
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.



<div class='sourceset sourceset-android'>Android</div>


```kotlin
actual fun getDefaultLazyLayoutKey(index: Int): Any
```


