SemanticsTreeNodeImpl

class SemanticsTreeNodeImpl : SemanticsTreeNode
kotlin.Any
   ↳ androidx.ui.core.SemanticsTreeNodeImpl

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

Summary

Public constructors

<init>(parent: SemanticsTreeNode?, semanticsComponentNode: SemanticsComponentNode)

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

Public methods

Unit

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

Set<SemanticsTreeNode>

SemanticsConfiguration

Rect?

SemanticsTreeNode?

Parent of this node or null if none

Public constructors

<init>

SemanticsTreeNodeImpl(
    parent: SemanticsTreeNode?,
    semanticsComponentNode: SemanticsComponentNode)

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

Parameters
parent: SemanticsTreeNode? Parent of this node or null if none
semanticsComponentNode: SemanticsComponentNode The actual semantics data of this node

Public methods

addChild

fun addChild(child: SemanticsTreeNode): Unit

findClosestParentNode

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

val children: Set<SemanticsTreeNode>

data

val data: SemanticsConfiguration

globalRect

val globalRect: Rect?

parent

val parent: SemanticsTreeNode?

Parent of this node or null if none