compose-shown
compose-shown copied to clipboard
Provides a callback for when a @Composable is shown to the user
It would be awesome if this were paired with an isHidden event as well. In particular, for things like view pagers, or for when the app goes in the background.
E.g., allow configuration where a composable needs to be visible for at least 3s before the "shown" callback is fired.
E.g., instead of requiring a composition to be fully shown for the callback to be fired, specify that if 70% of a composable is visible, it's considered "shown".
Thank you for this implementation! Any plans to publish the library artifact?