UNPKG

1.1 kBTypeScriptView Raw
1import type { Page } from '../ui/page';
2import type { View } from '../ui/core/view';
3import type { AndroidAccessibilityEvent } from './accessibility-types';
4
5export * from './accessibility-common';
6export * from './accessibility-types';
7export * from './font-scale';
8
9/**
10 * Initialize accessibility for View. This should be called on loaded-event.
11 */
12export function setupAccessibleView(view: View): void;
13
14/**
15 * Update accessibility properties on nativeView
16 */
17export function updateAccessibilityProperties(view: View): void;
18
19/**
20 * Android: helper function for triggering accessibility events
21 */
22export function sendAccessibilityEvent(View: View, eventName: AndroidAccessibilityEvent, text?: string): void;
23
24/**
25 * Android: Update the content description for views
26 */
27export function updateContentDescription(View: View, forceUpdate?: boolean): string | null;
28
29/**
30 * Is Android TalkBack or iOS VoiceOver enabled?
31 */
32export function isAccessibilityServiceEnabled(): boolean;
33
34/**
35 * Find the last view focused on a page.
36 */
37export function getLastFocusedViewOnPage(page: Page): View | null;