mirror of
https://gitee.com/shuto-github/phonegap-mobile-accessibility.git
synced 2026-04-19 00:01:32 +08:00
Detect and receive notification of more iOS accessibility features
Adds following methods for detecting iOS accessibility features: MobileAccessibility.isGuidedAccessEnabled() MobileAccessibility.isInvertColorsEnabled() MobileAccessibility.isGuidedAccessEnabled() MobileAccessibility.isInvertColorsEnabled() MobileAccessibility.isMonoAudioEnabled() Adds corresponding window events to subscribe to notifications of accessibility feature status updates: “guidedaccessstatusdidchange”, "invertcolorsstatusdidchange”, "monoaudiostatusdidchange" Adds following method for posting a notification as a string to be announced by VoiceOver: MobileAccessibility.postAnnouncementNotification()
This commit is contained in:
@@ -21,12 +21,28 @@
|
||||
|
||||
@interface CDVMobileAccessibility : CDVPlugin {
|
||||
NSString* callbackId;
|
||||
NSString* commandCallbackId;
|
||||
BOOL voiceOverRunning;
|
||||
BOOL closeCaptioningEnabled;
|
||||
BOOL guidedAccessEnabled;
|
||||
BOOL invertColorsEnabled;
|
||||
BOOL monoAudioEnabled;
|
||||
}
|
||||
|
||||
@property (strong) NSString* callbackId;
|
||||
@property (strong) NSString* commandCallbackId;
|
||||
@property BOOL voiceOverRunning;
|
||||
@property BOOL closeCaptioningEnabled;
|
||||
@property BOOL guidedAccessEnabled;
|
||||
@property BOOL invertColorsEnabled;
|
||||
@property BOOL monoAudioEnabled;
|
||||
|
||||
- (void) isVoiceOverRunning:(CDVInvokedUrlCommand*)command;
|
||||
- (void) isClosedCaptioningEnabled:(CDVInvokedUrlCommand*)command;
|
||||
- (void) isGuidedAccessEnabled:(CDVInvokedUrlCommand*)command;
|
||||
- (void) isInvertColorsEnabled:(CDVInvokedUrlCommand*)command;
|
||||
- (void) isMonoAudioEnabled:(CDVInvokedUrlCommand*)command;
|
||||
- (void) postAnnouncementNotification:(CDVInvokedUrlCommand*)command;
|
||||
- (void) start:(CDVInvokedUrlCommand*)command;
|
||||
- (void) stop:(CDVInvokedUrlCommand*)command;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user