UNPKG

8.7 kBJavaScriptView Raw
1export var AccessibilityTrait;
2(function (AccessibilityTrait) {
3 /**
4 * The element allows direct touch interaction for VoiceOver users.
5 */
6 AccessibilityTrait["AllowsDirectInteraction"] = "allowsDirectInteraction";
7 /**
8 * The element should cause an automatic page turn when VoiceOver finishes reading the text within it.
9 * Note: Requires custom view with accessibilityScroll(...)
10 */
11 AccessibilityTrait["CausesPageTurn"] = "pageTurn";
12 /**
13 * The element is not enabled and does not respond to user interaction.
14 */
15 AccessibilityTrait["NotEnabled"] = "disabled";
16 /**
17 * The element is currently selected.
18 */
19 AccessibilityTrait["Selected"] = "selected";
20 /**
21 * The element frequently updates its label or value.
22 */
23 AccessibilityTrait["UpdatesFrequently"] = "frequentUpdates";
24})(AccessibilityTrait || (AccessibilityTrait = {}));
25export var AccessibilityRole;
26(function (AccessibilityRole) {
27 /**
28 * The element allows continuous adjustment through a range of values.
29 */
30 AccessibilityRole["Adjustable"] = "adjustable";
31 /**
32 * The element should be treated as a button.
33 */
34 AccessibilityRole["Button"] = "button";
35 /**
36 * The element behaves like a Checkbox
37 */
38 AccessibilityRole["Checkbox"] = "checkbox";
39 /**
40 * The element is a header that divides content into sections, such as the title of a navigation bar.
41 */
42 AccessibilityRole["Header"] = "header";
43 /**
44 * The element should be treated as an image.
45 */
46 AccessibilityRole["Image"] = "image";
47 /**
48 * The element should be treated as a image button.
49 */
50 AccessibilityRole["ImageButton"] = "imageButton";
51 /**
52 * The element behaves as a keyboard key.
53 */
54 AccessibilityRole["KeyboardKey"] = "keyboardKey";
55 /**
56 * The element should be treated as a link.
57 */
58 AccessibilityRole["Link"] = "link";
59 /**
60 * The element has no traits.
61 */
62 AccessibilityRole["None"] = "none";
63 /**
64 * The element plays its own sound when activated.
65 */
66 AccessibilityRole["PlaysSound"] = "plays";
67 /**
68 * The element behaves like a ProgressBar
69 */
70 AccessibilityRole["ProgressBar"] = "progressBar";
71 /**
72 * The element behaves like a RadioButton
73 */
74 AccessibilityRole["RadioButton"] = "radioButton";
75 /**
76 * The element should be treated as a search field.
77 */
78 AccessibilityRole["Search"] = "search";
79 /**
80 * The element behaves like a SpinButton
81 */
82 AccessibilityRole["SpinButton"] = "spinButton";
83 /**
84 * The element starts a media session when it is activated.
85 */
86 AccessibilityRole["StartsMediaSession"] = "startsMedia";
87 /**
88 * The element should be treated as static text that cannot change.
89 */
90 AccessibilityRole["StaticText"] = "text";
91 /**
92 * The element provides summary information when the application starts.
93 */
94 AccessibilityRole["Summary"] = "summary";
95 /**
96 * The element behaves like a switch
97 */
98 AccessibilityRole["Switch"] = "switch";
99})(AccessibilityRole || (AccessibilityRole = {}));
100export var AccessibilityState;
101(function (AccessibilityState) {
102 AccessibilityState["Selected"] = "selected";
103 AccessibilityState["Checked"] = "checked";
104 AccessibilityState["Unchecked"] = "unchecked";
105 AccessibilityState["Disabled"] = "disabled";
106})(AccessibilityState || (AccessibilityState = {}));
107export var AccessibilityLiveRegion;
108(function (AccessibilityLiveRegion) {
109 AccessibilityLiveRegion["None"] = "none";
110 AccessibilityLiveRegion["Polite"] = "polite";
111 AccessibilityLiveRegion["Assertive"] = "assertive";
112})(AccessibilityLiveRegion || (AccessibilityLiveRegion = {}));
113export var IOSPostAccessibilityNotificationType;
114(function (IOSPostAccessibilityNotificationType) {
115 IOSPostAccessibilityNotificationType["Announcement"] = "announcement";
116 IOSPostAccessibilityNotificationType["Screen"] = "screen";
117 IOSPostAccessibilityNotificationType["Layout"] = "layout";
118})(IOSPostAccessibilityNotificationType || (IOSPostAccessibilityNotificationType = {}));
119export var AndroidAccessibilityEvent;
120(function (AndroidAccessibilityEvent) {
121 /**
122 * Invalid selection/focus position.
123 */
124 AndroidAccessibilityEvent["INVALID_POSITION"] = "invalid_position";
125 /**
126 * Maximum length of the text fields.
127 */
128 AndroidAccessibilityEvent["MAX_TEXT_LENGTH"] = "max_text_length";
129 /**
130 * Represents the event of clicking on a android.view.View like android.widget.Button, android.widget.CompoundButton, etc.
131 */
132 AndroidAccessibilityEvent["VIEW_CLICKED"] = "view_clicked";
133 /**
134 * Represents the event of long clicking on a android.view.View like android.widget.Button, android.widget.CompoundButton, etc.
135 */
136 AndroidAccessibilityEvent["VIEW_LONG_CLICKED"] = "view_long_clicked";
137 /**
138 * Represents the event of selecting an item usually in the context of an android.widget.AdapterView.
139 */
140 AndroidAccessibilityEvent["VIEW_SELECTED"] = "view_selected";
141 /**
142 * Represents the event of setting input focus of a android.view.View.
143 */
144 AndroidAccessibilityEvent["VIEW_FOCUSED"] = "view_focused";
145 /**
146 * Represents the event of changing the text of an android.widget.EditText.
147 */
148 AndroidAccessibilityEvent["VIEW_TEXT_CHANGED"] = "view_text_changed";
149 /**
150 * Represents the event of opening a android.widget.PopupWindow, android.view.Menu, android.app.Dialog, etc.
151 */
152 AndroidAccessibilityEvent["WINDOW_STATE_CHANGED"] = "window_state_changed";
153 /**
154 * Represents the event showing a android.app.Notification.
155 */
156 AndroidAccessibilityEvent["NOTIFICATION_STATE_CHANGED"] = "notification_state_changed";
157 /**
158 * Represents the event of a hover enter over a android.view.View.
159 */
160 AndroidAccessibilityEvent["VIEW_HOVER_ENTER"] = "view_hover_enter";
161 /**
162 * Represents the event of a hover exit over a android.view.View.
163 */
164 AndroidAccessibilityEvent["VIEW_HOVER_EXIT"] = "view_hover_exit";
165 /**
166 * Represents the event of starting a touch exploration gesture.
167 */
168 AndroidAccessibilityEvent["TOUCH_EXPLORATION_GESTURE_START"] = "touch_exploration_gesture_start";
169 /**
170 * Represents the event of ending a touch exploration gesture.
171 */
172 AndroidAccessibilityEvent["TOUCH_EXPLORATION_GESTURE_END"] = "touch_exploration_gesture_end";
173 /**
174 * Represents the event of changing the content of a window and more specifically the sub-tree rooted at the event's source.
175 */
176 AndroidAccessibilityEvent["WINDOW_CONTENT_CHANGED"] = "window_content_changed";
177 /**
178 * Represents the event of scrolling a view.
179 */
180 AndroidAccessibilityEvent["VIEW_SCROLLED"] = "view_scrolled";
181 /**
182 * Represents the event of changing the selection in an android.widget.EditText.
183 */
184 AndroidAccessibilityEvent["VIEW_TEXT_SELECTION_CHANGED"] = "view_text_selection_changed";
185 /**
186 * Represents the event of an application making an announcement.
187 */
188 AndroidAccessibilityEvent["ANNOUNCEMENT"] = "announcement";
189 /**
190 * Represents the event of gaining accessibility focus.
191 */
192 AndroidAccessibilityEvent["VIEW_ACCESSIBILITY_FOCUSED"] = "view_accessibility_focused";
193 /**
194 * Represents the event of clearing accessibility focus.
195 */
196 AndroidAccessibilityEvent["VIEW_ACCESSIBILITY_FOCUS_CLEARED"] = "view_accessibility_focus_cleared";
197 /**
198 * Represents the event of traversing the text of a view at a given movement granularity.
199 */
200 AndroidAccessibilityEvent["VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY"] = "view_text_traversed_at_movement_granularity";
201 /**
202 * Represents the event of beginning gesture detection.
203 */
204 AndroidAccessibilityEvent["GESTURE_DETECTION_START"] = "gesture_detection_start";
205 /**
206 * Represents the event of ending gesture detection.
207 */
208 AndroidAccessibilityEvent["GESTURE_DETECTION_END"] = "gesture_detection_end";
209 /**
210 * Represents the event of the user starting to touch the screen.
211 */
212 AndroidAccessibilityEvent["TOUCH_INTERACTION_START"] = "touch_interaction_start";
213 /**
214 * Represents the event of the user ending to touch the screen.
215 */
216 AndroidAccessibilityEvent["TOUCH_INTERACTION_END"] = "touch_interaction_end";
217 /**
218 * Mask for AccessibilityEvent all types.
219 */
220 AndroidAccessibilityEvent["ALL_MASK"] = "all";
221})(AndroidAccessibilityEvent || (AndroidAccessibilityEvent = {}));
222//# sourceMappingURL=accessibility-types.js.map
\No newline at end of file