Commit Graph

8 Commits

Author SHA1 Message Date
Michael Jordan 06565d5b9d Correct MobileAccessibility.stop() method on iOS
Correct MobileAccessibility.stop() method on iOS, postNotification
requires a string as the second parameter, but we should allow a
notification without a string.

Simplify naming convention for accessibility status events.

closedcaptioningstatusdidchange -> closedcaptioningstatuschanged
guidedaccessstatusdidchange -> guidedaccessstatuschanged
invertcolorsstatusdidchange -> invertcolorsstatuschanged
monoaudiostatusdidchange  -> monoaudiostatuschanged
2014-02-11 18:33:47 -05:00
Michael Jordan b0016ab0df Catch javascript errors when cvox.ChromeVox.tts.stop is unavailable
refactor activateOrDeactivateChromeVox into a separate method.
2014-02-10 21:36:35 -05:00
Michael Jordan ea97c1faa1 Adding Android platform 2014-02-10 17:28:17 -05:00
Michael Jordan a7448daaf1 Refactor to MobileAccessibility.postNotification to accept other notification types
MobileAccessibility.postNotification now allows you to send
UIAccessibilityScreenChangedNotification,
UIAccessibilityLayoutChangedNotification, and
UIAccessibilityPageScrolledNotification in addition to
UIAccessibilityAnnouncementNotification.

Refactor isVoiceOverRunning and “voiceoverstatuschanged” to the more
platform agnostic isScreenReaderRunning and “screenreaderstatuschanged”
in anticipation of Android support.
2014-01-22 17:35:30 -05:00
Michael Jordan 3fa548ec84 Remove cordova.define() wrapper
Per https://github.com/phonegap/phonegap-mobile-accessibility/pull/2#issuecomment-32664736, remove the cordova.define wrapper so that the plugin will install correctly with Plugman
2014-01-21 18:34:55 -05:00
Michael Jordan 2643674b7f 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()
2014-01-17 16:48:22 -05:00
Michael Jordan 97dd76c7df Implement isVoiceOverRunning and isClosedCaptioningEnabled methods for iOS
Also implement VoiceOverStatusChanged and
ClosedCaptioningStatusDidChange notifications
2013-12-02 18:43:59 -05:00
Shazron Abdullah 883d41449e Initial commit of the plugin.
Stubs for iOS and the .js.
2013-10-07 13:22:23 -07:00