https://kotlinlang.org logo
#compose-android
Title
# compose-android
t

Tgo1014

06/23/2023, 12:16 PM
Is there a way to detect if a composable is being fully displayed on screen?
1
I’ve managed to find a way by storing the
Offset
the first time is call
onGloballyPositioned
and then compare the current windows offset with the stored one. Not sure this is the best way.
In my case I actually needed to know if the top of the composable was being displayed, not exactly “fully displayed”
2 Views