SemanticsProperties

object SemanticsProperties
kotlin.Any
   ↳ androidx.ui.semantics.SemanticsProperties

General semantics properties, mainly used for accessibility.

Summary

Properties
SemanticsPropertyKey<String>

Developer-set content description of the semantics node.

SemanticsPropertyKey<AccessibilityRangeInfo>

The node is a range with current value.

SemanticsPropertyKey<String>

Developer-set state description of the semantics node.

SemanticsPropertyKey<Unit>

Whether this semantics node is disabled.

SemanticsPropertyKey<Boolean>

Whether this semantics node is input focused.

SemanticsPropertyKey<Unit>

Whether this semantics node is hidden.

SemanticsPropertyKey<Unit>

Whether this semantics node represents a Popup.

SemanticsPropertyKey<String>

Test tag attached to this semantics node.

SemanticsPropertyKey<AnnotatedString>

Text of the semantics node.

SemanticsPropertyKey<TextRange>

Text selection range for edit text.

Properties

AccessibilityLabel

val AccessibilityLabel: SemanticsPropertyKey<String>

Developer-set content description of the semantics node. If this is not set, accessibility services will present the Text of this node as content part.

AccessibilityRangeInfo

val AccessibilityRangeInfo: SemanticsPropertyKey<AccessibilityRangeInfo>

The node is a range with current value.

AccessibilityValue

val AccessibilityValue: SemanticsPropertyKey<String>

Developer-set state description of the semantics node. For example: on/off. If this not set, accessibility services will derive the state from other semantics properties, like AccessibilityRangeInfo, but it is not guaranteed and the format will be decided by accessibility services.

Disabled

val Disabled: SemanticsPropertyKey<Unit>

Whether this semantics node is disabled.

Focused

val Focused: SemanticsPropertyKey<Boolean>

Whether this semantics node is input focused.

Hidden

val Hidden: SemanticsPropertyKey<Unit>

Whether this semantics node is hidden.

IsPopup

val IsPopup: SemanticsPropertyKey<Unit>

Whether this semantics node represents a Popup. Not to be confused with if this node is part of a Popup.

TestTag

val TestTag: SemanticsPropertyKey<String>

Test tag attached to this semantics node.

Text

val Text: SemanticsPropertyKey<AnnotatedString>

Text of the semantics node. It must be the actual text displayed by this component instead of developer-set content description.

TextSelectionRange

val TextSelectionRange: SemanticsPropertyKey<TextRange>

Text selection range for edit text.