SemanticsProperties

object SemanticsProperties


General semantics properties, mainly used for accessibility and testing.

Each of these is intended to be set by the respective SemanticsPropertyReceiver extension instead of used directly.

Summary

Public properties

Disabled

val DisabledSemanticsPropertyKey<Unit>
See also
disabled

Error

val ErrorSemanticsPropertyKey<String>
See also
error

Focused

val FocusedSemanticsPropertyKey<Boolean>
See also
focused

Heading

val HeadingSemanticsPropertyKey<Unit>
See also
heading

ImeAction

val ImeActionSemanticsPropertyKey<ImeAction>
See also
imeAction

IndexForKey

val IndexForKeySemanticsPropertyKey<(Any) -> Int>
See also
indexForKey

IsDialog

val IsDialogSemanticsPropertyKey<Unit>
See also
dialog

IsPopup

val IsPopupSemanticsPropertyKey<Unit>
See also
popup

PaneTitle

val PaneTitleSemanticsPropertyKey<String>
See also
paneTitle

Password

val PasswordSemanticsPropertyKey<Unit>
See also
password

Role

val RoleSemanticsPropertyKey<Role>

The type of user interface element. Accessibility services might use this to describe the element or do customizations. Most roles can be automatically resolved by the semantics properties of this element. But some elements with subtle differences need an exact role. If an exact role is not listed in Role, this property should not be set and the framework will automatically resolve it.

See also
role

SelectableGroup

val SelectableGroupSemanticsPropertyKey<Unit>
See also
selectableGroup

Selected

val SelectedSemanticsPropertyKey<Boolean>
See also
selected

StateDescription

val StateDescriptionSemanticsPropertyKey<String>
See also
stateDescription

TestTag

val TestTagSemanticsPropertyKey<String>
See also
testTag