Back to API Reference
Class

UniTextSemantics

sealed
Implements:IDisposable

Platform-neutral semantic tree owned by one UniText component. It publishes stable live nodes and incremental changes; native accessibility packages are adapters over this API.

public IReadOnlyList<TextSemanticNode> Nodes{ get }

Current stable live nodes in logical codepoint order.

public RangeIdentity FocusedIdentity{ get }

Stable identity currently marked focused, or an invalid value.

public static UniTextSemantics For()

Returns the semantic tree attached to a text component.

public static bool TryGet()

Returns an existing semantic tree without creating one.

public bool TryGet()

Finds one node by stable entity identity.

public bool PerformAction()

Requests one action declared by a node. Project handlers run first; Activate and Context then reuse the normal interaction router unless PreventDefault was called.

public void Dispose()

Releases geometry capture, subscriptions and tree state.

public Action<TextSemanticChange> Changed

Occurs once for every added, updated or removed node.

public Action Committed

Occurs after all incremental changes from one layout commit have been emitted.

public TextSemanticActionHandler ActionRequested

Occurs before optional built-in Activate or Context routing.