InteractionSourceObserverNode

interface InteractionSourceObserverNode : TraversableNode

Observe InteractionSource updated for a node within a direct child of InteractionSourceElement nodes.

Properties

Link copied to clipboard
abstract val node: Modifier.Node
Link copied to clipboard
abstract val traverseKey: Any

Functions

Link copied to clipboard
open fun onDensityChange()
Link copied to clipboard
abstract fun onInteractionStateChanged(interactions: Interactions)

Called when any interaction such as focused, pressed or hovered changes state on the parent node.

Link copied to clipboard
Link copied to clipboard
inline fun <T : TraversableNode> TraversableNode.traverseDirectDescendants(key: Any?, noinline block: (T) -> Unit)

Executes block for each direct descendant of this TraversableNode with a matching key.