Compose Modifier

onFirstVisible

Registers a callback to monitor when the node is first inside of the viewport of the window or not.

OnFirstVisibleImpressionLoggingSample

@Suppress("DEPRECATION")
@Sampled
@Composable
private fun OnFirstVisibleImpressionLoggingSample() {

OnFirstVisibleImpressionLoggingWithViewportSample

@Suppress("DEPRECATION")
@Sampled
@Composable
private fun OnFirstVisibleImpressionLoggingWithViewportSample() {
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: