-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAccessibility.nitro.ts
83 lines (62 loc) · 3.52 KB
/
Accessibility.nitro.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import type { HybridObject } from "react-native-nitro-modules";
export interface AccessibilitySettings {
readonly isReduceMotionEnabled: boolean | null;
readonly isReduceTransparencyEnabled: boolean | null;
readonly isDifferentiateWithoutColorEnabled: boolean | null;
readonly isInvertColorsEnabled: boolean | null;
readonly isShowButtonShapesEnabled: boolean | null;
readonly isBoldTextEnabled: boolean | null;
readonly isVoiceOverEnabled: boolean | null;
readonly isSwitchControlEnabled: boolean | null;
readonly isVideoAutoplayEnabled: boolean | null;
readonly isClosedCaptioningEnabled: boolean | null;
readonly prefersCrossFadeTransitions: boolean | null;
readonly isGrayscaleEnabled: boolean | null;
readonly isDarkerSystemColorsEnabled: boolean | null;
readonly isMonoAudioEnabled: boolean | null;
readonly isShakeToUndoEnabled: boolean | null;
readonly isSpeakScreenEnabled: boolean | null;
readonly isSpeakSelectionEnabled: boolean | null;
readonly isOnOffSwitchLabelsEnabled: boolean | null;
}
export interface NitroAccessibilityModule
extends HybridObject<{ ios: "swift"; android: "kotlin" }> {
removeListeners(): void;
getAllSettings(): AccessibilitySettings;
getIsReduceMotionEnabled(): boolean | null;
addReduceMotionListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsReduceTransparencyEnabled(): boolean | null;
addReduceTransparencyListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsDifferentiateWithoutColorEnabled(): boolean | null;
addDifferentiateWithoutColorListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsInvertColorsEnabled(): boolean | null;
addInvertColorsListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsShowButtonShapesEnabled(): boolean | null;
addShowButtonShapesListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsBoldTextEnabled(): boolean | null;
addBoldTextListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsVoiceOverEnabled(): boolean | null;
addVoiceOverListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsSwitchControlEnabled(): boolean | null;
addSwitchControlListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsVideoAutoplayEnabled(): boolean | null;
addVideoAutoplayListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsClosedCaptioningEnabled(): boolean | null;
addClosedCaptioningListener(onChanged: (isEnabled: boolean | null) => void): void;
getPrefersCrossFadeTransitionsEnabled(): boolean | null;
addPrefersCrossFadeTransitionsListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsGrayscaleEnabled(): boolean | null;
addGrayscaleListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsDarkerSystemColorsEnabled(): boolean | null;
addDarkerSystemColorsListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsMonoAudioEnabled(): boolean | null;
addMonoAudioListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsShakeToUndoEnabled(): boolean | null;
addShakeToUndoListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsSpeakScreenEnabled(): boolean | null;
addSpeakScreenListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsSpeakSelectionEnabled(): boolean | null;
addSpeakSelectionListener(onChanged: (isEnabled: boolean | null) => void): void;
getIsOnOffSwitchLabelsEnabled(): boolean | null;
addOnOffSwitchLabelsListener(onChanged: (isEnabled: boolean | null) => void): void;
}