class SemanticsHandle
source · line 7public class SemanticsHandle internal constructor(
internal val owner: MountedNode,
internal val controller: RootSemantics,
internal val resource: AccessibilityNode,
internal var explicitParent: SemanticsHandle?,
internal var parent: SemanticsHandle?
) : Closeable
- Supertype
Closeable - Inherited
fun dispose(): Unit· Closeable
One scope-owned semantic identity, independent of drawing and input areas.
Extensions
public fun SemanticsHandle.updateDataCollection(snapshot: SemanticCollectionSnapshot, actions: SemanticCollectionActions = SemanticCollectionActions()): Unit· scoop:scoop.ui:0.1.0public fun SemanticsHandle.updateCollection(source: ItemSource, items: ItemSemantics? = None, viewport: ScrollViewport? = None): Unit· scoop:scoop.ui:0.1.0public fun SemanticsHandle.updateTextEditor(host: TextEditHost, properties: SemanticProperties = SemanticProperties(), relations: SemanticRelations = SemanticRelations(), setExpanded: ((Boolean) -> SemanticActionResult)? = None): Unit· scoop:scoop.ui:0.1.0public fun SemanticsHandle.updateSelectableText(host: SelectableTextHost, properties: SemanticProperties = SemanticProperties(), relations: SemanticRelations = SemanticRelations()): Unit· scoop:scoop.ui:0.1.0public fun SemanticsHandle.updateScrollBar(viewport: ScrollViewport, orientation: SemanticOrientation, lineStep: Double = 40.0, properties: SemanticProperties = SemanticProperties(), relations: SemanticRelations = SemanticRelations()): Unit· scoop:scoop.ui:0.1.0public fun SemanticsHandle.updateScrollBar(host: TextEditHost, orientation: SemanticOrientation, lineStep: Double = 40.0, properties: SemanticProperties = SemanticProperties(), relations: SemanticRelations = SemanticRelations()): Unit· scoop:scoop.ui:0.1.0
function announce
source · line 85public fun announce(text: String, priority: SemanticLive = SemanticLive.Polite): Unit
parameter priority
source · line 85priority: SemanticLive = SemanticLive.Polite
parameter text
source · line 85text: String
function bindReferences
source · line 104public fun bindReferences(next: Array<SemanticsReference>): Unit
Allows a component's public reference and its internal relationships to share one node.
parameter next
source · line 104next: Array<SemanticsReference>
function close
source · line 267public override fun close(): Unit
- Overrides
close
Retires this identity while preserving independently owned semantic children.
property role
source · line 33public val role: SemanticRole
get: public read-only
getter get
source · line 33get(): SemanticRole
property relations
source · line 65public val relations: SemanticRelations
get: public read-only
Current same-root references, with retired targets removed.
getter get
source · line 66get(): SemanticRelations
property mergeLabels
source · line 35public var mergeLabels: Boolean
get: public set: public
Merges plain text leaves in this semantic container, retaining interactive children.
getter get
source · line 36get(): Boolean
setter set
source · line 40set(value: Boolean)
parameter value
source · line 40value
function bindFocus
source · line 185public fun bindFocus(target: FocusTarget?): Unit
Borrows the real focus target; binding never requests keyboard focus.
parameter target
source · line 185target: FocusTarget?
property isClosed
source · line 70public val isClosed: Boolean
get: public read-only
getter get
source · line 71get(): Boolean
property geometry
source · line 79public val geometry: SemanticGeometry?
get: public read-only
The last accepted geometry matching the current semantic content.
getter get
source · line 80get(): Option<SemanticGeometry>
function bindReference
source · line 94public fun bindReference(next: SemanticsReference?): Unit
Retaining the same reference does not invalidate its render readers.
parameter next
source · line 94next: SemanticsReference?
function update
source · line 121public fun update(properties: SemanticProperties, actions: SemanticActions = SemanticActions(), relations: SemanticRelations = SemanticRelations()): Unit
Replaces facts, callbacks and relations without changing identity or requesting a frame.
parameter properties
source · line 122properties: SemanticProperties
parameter actions
source · line 123actions: SemanticActions = SemanticActions()
parameter relations
source · line 124relations: SemanticRelations = SemanticRelations()
property id
source · line 32public val id: SemanticNodeId
get: public read-only
getter get
source · line 32get(): SemanticNodeId