Commit Graph

32 Commits

Author SHA1 Message Date
Shazron Abdullah
b8f90d3841 Merge pull request #9 from EddyVerbruggen/dependency-failure
Failed to load dependent plugins
2015-04-20 00:20:18 -07:00
EddyVerbruggen
d0db5b05b5 Failed to load dependent plugins 2015-04-19 21:28:13 +02:00
EddyVerbruggen
c924261c26 Failed to load dependent plugins 2015-04-19 21:13:33 +02:00
Michael Jordan
c1e6bf44a8 [Android] Stop speaking current announcement before announcing something else.
TalkBack announces successive AccessibilityEvent.TYPE_ANNOUNCEMENT
events by adding rather than flushing the queue.

With Android’s migration away from using ChromeVox for WebViews, this
became more noticeable.

Adding AccessibilityManager.interrupt() before the announcement stops
any speech that may be in progress, before making an announcement.
2015-02-20 18:18:14 -05:00
Michael Jordan
cb94a6c8eb Add preliminary support for Windows 8.1 2015-01-13 13:35:40 -05:00
Michael Jordan
226a7745fb Post notification with Unicode Character 'ZERO WIDTH SPACE' (U+200B) to stop VoiceOver speech 2014-12-19 19:18:43 -05:00
Michael Jordan
728fad52fd Update version number 2014-03-26 10:25:01 -04:00
Michael Jordan
59a53049b8 Documentation layout adjustments 2014-03-25 20:51:28 -04:00
Michael Jordan
f0ef1528a6 More documentation updates 2014-03-25 20:46:37 -04:00
Michael Jordan
ec550cfc6a Update documentation 2014-03-25 20:33:34 -04:00
Michael Jordan
54efe1452c Adjust behavior of MobileAccessibility.updateTextZoom and MobileAccessibility.getTextZoom
Adjust behavior of MobileAccessibility.updateTextZoom and
MobileAccessibility.getTextZoom so they both return the correct updated
zoom value to a callback method.

Adjust behavior of isTalkBackRunning and isVoiceOverRunning so that
they return true only for the appropriate platform.
2014-03-25 20:33:16 -04:00
Michael Jordan
9bff312e85 Add MobileAccessibilityNotifications to store notification constants 2014-03-25 20:28:31 -04:00
Michael Jordan
ee1d59e437 Update copyright and license information 2014-03-25 20:26:08 -04:00
Michael Jordan
0e3986db4e Include Device and NetworkStatus explicitly for Android. 2014-03-15 18:13:05 -04:00
Michael Jordan
bcdaa23d35 Add support for adjusting text in the WebView to the preferred zoom scale on iOS 7.
iOS will now support adjusting text to preferred point size.
2014-03-14 11:34:02 -04:00
Michael Jordan
ab2950874b Organized imports 2014-03-14 10:41:22 -04:00
Michael Jordan
f27ac8cf24 Update version number 2014-03-14 10:00:10 -04:00
Michael Jordan
728a327ab0 Add support for adjusting text in the WebView to the preferred zoom scale on Android.
More robust iOS support is forthcoming, but currently works with iOS7
Dynamic Type Fonts by setting the following css on the body and using
relatively sized fonts sizing for child containers, for example:

body {
   font: -apple-system-body;
}

body > .app {
  font-family: 'HelveticaNeue-Light', 'HelveticaNeue', Helvetica,
Arial, sans-serif;
  font-size:0.75em;
  font-weight: 200;
}
2014-03-06 21:44:05 -05:00
Michael Jordan
4b62a1f24a Include MediaAccessibility.framework for iOS as a weak reference 2014-03-03 16:41:07 -05:00
Michael Jordan
f26cb3ae77 Inject AndroidVox locally when there is no network connection.
The WebView typically injects AndroidVox from a Google server when it
launches a page with TalkBack enabled, however, in the unlikely event
that the app launches without a network connection and AndroidVox has
not been cached from an previous connected session, AndroidVox will not
start and the app will be inaccessible. We try to mitigate this by
injecting AndroidVox from a local path.
2014-02-25 18:56:00 -05:00
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
7c7e8be5fc [trivial] update .gitignore to ignore Eclipse project file 2014-01-22 17:38:02 -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
Shazron Abdullah
36024c948a Merge pull request #2 from majornista/master
Detect and receive notification of more iOS accessibility features
2014-01-17 15:30:07 -08: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
Shazron Abdullah
23775d23d7 Merge pull request #1 from majornista/master
Implement isVoiceOverRunning and isClosedCaptioningEnabled methods for iOS
2013-12-02 15:57:52 -08: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
Shazron Abdullah
6f370b9883 Initial commit 2013-10-07 13:09:43 -07:00