{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

SemanticsOwner

public final class SemanticsOwner


Owns SemanticsNode objects and notifies listeners of changes to the semantics tree

Summary

Public methods

final @NonNull SemanticsNode

The root node of the semantics tree.

final @NonNull SemanticsNode

Extension functions

final @NonNull List<@NonNull SemanticsNode>
SemanticsOwnerKt.getAllSemanticsNodes(
    @NonNull SemanticsOwner receiver,
    boolean mergingEnabled
)

Finds all SemanticsNodes in the tree owned by this SemanticsOwner.

Public methods

getRootSemanticsNode

public final @NonNull SemanticsNode getRootSemanticsNode()

The root node of the semantics tree. Does not contain any unmerged data. May contain merged data.

getUnmergedRootSemanticsNode

public final @NonNull SemanticsNode getUnmergedRootSemanticsNode()

Extension functions

SemanticsOwnerKt.getAllSemanticsNodes

public final @NonNull List<@NonNull SemanticsNodeSemanticsOwnerKt.getAllSemanticsNodes(
    @NonNull SemanticsOwner receiver,
    boolean mergingEnabled
)

Finds all SemanticsNodes in the tree owned by this SemanticsOwner. Return the results in a list.