Struct TraitType
sealed struct TraitType
TraitType struct represents traits that a view can hold. These traits represent the behaviour of the view.
For e.g. CHECKABLE: The view can be checked/unchecked
Fields
Constants
FOCUSABLE
The view can receive input focus.TraitType={0}
VISIBILITY
This trait helps deduce this views visibility.TraitType={1}
EDITABLE
The view contains editable text.TraitType={2}
PAGEABLE
The view is paginated.TraitType={3}
ENABLEABLE
The view can be enabled and disabled.TraitType={4}
PANE
The view represents a group of UI views.TraitType={5}
CHECKABLE
The view can be checked.TraitType={6}
SWITCHABLE
The view can be turned on/off as opposed to checked.TraitType={7}
EXPANDABLE
The view can be expanded and collapsed.TraitType={8}
SCROLLABLE
The view can be scrolled input focus.TraitType={9}
ADJUSTABLE
The view can be adjusted.TraitType={10}
TABLE
The view is a table.TraitType={11}
TABLE_CELL
The view is a table cell.TraitType={12}
HEADING
The view is a heading.TraitType={13}
SELECTABLE
The view can be selected.TraitType={14}
VALUE
The view is a range based or textual value.TraitType={15}
LIVE
The view can be updated.TraitType={16}
COMPOUND_COMPONENT
This trait tells how to treat descendants of this view.TraitType={17}
RELATIONSHIPS
The trait represents relationships with other views.TraitType={18}
HIDDEN
This trait gives a hint that the view can be disregarded.TraitType={19}
HINTS
The view can provide different types of hints.TraitType={20}
VOICE_ASSISTANT
This trait describes voice specific props of a view.TraitType={21}

