Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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

TraitType = {0}
The view can receive input focus.

VISIBILITY

TraitType = {1}
This trait helps deduce this views visibility.

EDITABLE

TraitType = {2}
The view contains editable text.

PAGEABLE

TraitType = {3}
The view is paginated.

ENABLEABLE

TraitType = {4}
The view can be enabled and disabled.

PANE

TraitType = {5}
The view represents a group of UI views.

CHECKABLE

TraitType = {6}
The view can be checked.

SWITCHABLE

TraitType = {7}
The view can be turned on/off as opposed to checked.

EXPANDABLE

TraitType = {8}
The view can be expanded and collapsed.

SCROLLABLE

TraitType = {9}
The view can be scrolled input focus.

ADJUSTABLE

TraitType = {10}
The view can be adjusted.

TABLE

TraitType = {11}
The view is a table.

TABLE_CELL

TraitType = {12}
The view is a table cell.

HEADING

TraitType = {13}
The view is a heading.

SELECTABLE

TraitType = {14}
The view can be selected.

VALUE

TraitType = {15}
The view is a range based or textual value.

LIVE

TraitType = {16}
The view can be updated.

COMPOUND_COMPONENT

TraitType = {17}
This trait tells how to treat descendants of this view.

RELATIONSHIPS

TraitType = {18}
The trait represents relationships with other views.

HIDDEN

TraitType = {19}
This trait gives a hint that the view can be disregarded.

HINTS

TraitType = {20}
The view can provide different types of hints.

VOICE_ASSISTANT

TraitType = {21}
This trait describes voice specific props of a view.
Last modified on October 29, 2026