SemanticsTreeNode

interface SemanticsTreeNode
androidx.ui.core.SemanticsTreeNode

Represent a node in the semantics tree together with information about its parent and children.

parent Parent of this node or null if none data The actual semantics data of this node children A list of this node's SemanticsTreeNode children globalRect A rectangle that stores the position and size of the node

Summary

Public methods

abstract ComponentNode?

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

Properties

abstract Set<SemanticsTreeNode>

abstract SemanticsConfiguration

abstract Rect?

abstract SemanticsTreeNode?

Public methods

findClosestParentNode

abstract fun findClosestParentNode(selector: (ComponentNode) -> Boolean): ComponentNode?

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

Properties

children

abstract val children: Set<SemanticsTreeNode>

data

abstract val data: SemanticsConfiguration

globalRect

abstract val globalRect: Rect?

parent

abstract val parent: SemanticsTreeNode?