PointerInputNode

class PointerInputNode : ComponentNode
kotlin.Any
   ↳ androidx.ui.core.ComponentNode
   ↳ androidx.ui.core.PointerInputNode

Backing node for handling pointer events.

Summary

Public constructors

Backing node for handling pointer events.

Inherited functions

Inherited extension functions

From androidx.ui.core
Unit

Inserts a child ComponentNode at a last index.

ComponentNode?

Executes selector on every parent of this ComponentNode and returns the closest ComponentNode to return true from selector or null if selector returns false for all ancestors.

LayoutNode?

Executes block on first level of LayoutNode descendants of this ComponentNode and returns the last LayoutNode to return true from block.

Boolean

Returns true if this ComponentNode has no descendant LayoutNodes.

Boolean

Returns true if this ComponentNode currently has an ComponentNode.owner.

Owner

Returns ComponentNode.owner or throws if it is null.

Unit

Executes block on first level of LayoutNode descendants of this ComponentNode.

Properties

() -> Unit

Invoked when Android passes an ACTION_CANCEL event to the AndroidComposeView.onTouchEvent method.

PointerInputHandler

Invoked when pointers that previously hit this PointerInputNode have changed.

Inherited properties

Public constructors

<init>

PointerInputNode()

Backing node for handling pointer events.

Properties

cancelHandler

var cancelHandler: () -> Unit

Invoked when Android passes an ACTION_CANCEL event to the AndroidComposeView.onTouchEvent method.

pointerInputHandler

var pointerInputHandler: PointerInputHandler

Invoked when pointers that previously hit this PointerInputNode have changed.