Join Slack
Powered by
Is there a way to detect if a composable is being ...
# 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
Tgo1014
06/23/2023, 12:36 PM
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.
Tgo1014
06/23/2023, 12:36 PM
In my case I actually needed to know if the top of the composable was being displayed, not exactly “fully displayed”
3
Views
Open in Slack
Previous
Next