Package-level declarations
Functions
Link copied to clipboard
A function that tracks an event, for click handlers and other callbacks in a composable that has no ViewModel:
Link copied to clipboard
fun Modifier.trackImpression(event: Event, threshold: Float = 0.5f, minVisibleDuration: Duration = Duration.ZERO): Modifier
Tracks event once, when at least threshold of this layout is visible on screen. With a minVisibleDuration, it has to stay that visible for that long first; leaving earlier cancels the count.
Link copied to clipboard
Link copied to clipboard