interactionSourceNode
fun Modifier.interactionSourceNode(interactionSource: InteractionSource?, childTraversalKey: Any = DefaultInteractionSourceChildTraversalKey): Modifier
Modifier to attach an InteractionSource to an element allowing child traversable Nodes to listen to interactions by implementing InteractionSourceObserverNode.
A child element implementing InteractionSourceObserverNode should override onInteractionsChanged to respond to interaction source changes.
Since
0.4.0
Parameters
interactionSource
The InteractionSource to associate with a Node.
childTraversalKey
The traversal key used to find the InteractionSourceObserverNode.