Join Slack
Powered by
How can I track the visibility state of a page in ...
# compose-android
f
FlowFan
05/06/2025, 3:18 AM
How can I track the visibility state of a page in
VerticalPager
? I want to perform certain actions when a page becomes visible or hidden such as onResume/onPause in
ViewPager2
.
FlowFan
05/23/2025, 8:00 AM
It seems that the new API
Modifier.onVisibilityChanged
can achieve this behavior.
Open in Slack
Previous
Next