https://kotlinlang.org logo
j

Jeremy

10/26/2020, 10:14 PM
Is there any to trigger a callback when the end of a lazycolumn scroll has been reached? aka infinite scroll?
a

Adam Powell

10/26/2020, 10:17 PM
I don't think
LazyListState
exposes quite enough of what you need just yet, you need to know the last visible position and its offset from the bottom the way it exposes the same for the first/top
1
once that's there though, you can observe the
LazyListState
and decide when to load more stuff
snapshotFlow {}
is helpful for bridging from compose state into other async event-based code for doing things like this
a

Andrey Kulikov

10/26/2020, 10:29 PM
4 Views