is there a quick way to know whether a Composable is "visible" or "shown" similar to the lifecycle of an Activity or Fragment? I'm trying to use a RUM tool to track what "Screen" a user is on. By default the RUM tool only lets you track navigation with compose, but we have some Composables that are using Pager which means they're on the same route as each other but are different screens we want to track.
not kotlin but kotlin colored
09/25/2023, 10:02 AM
When i remember correctly also in a legacy ViewPager you not now if a page is really visible.
But of course the pager do know which page is selected. Maybe you could forward this to the composable.
09/27/2023, 5:34 PM
@Timo Drick Cool, yeah I was able to track events inside of the Pager based on which paged was selected! Thanks 🙂.