deviant
pointerInput
Button
on released
Oleksandr Balan
InteractionSource
val interactionSource = remember { MutableInteractionSource() } LaunchedEffect(interactionSource) { interactionSource.interactions.collect { if (it is PressInteraction.Release) { Log.d("[InteractionSource]", "Release the button's soul!") } } } Button( onClick = { ... }, interactionSource = interactionSource ) { Text("Tap on me ") }
A modern programming language that makes developers happier.