Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3258] Allow to force the accessibility system to focus a view

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusResolved
ResolutionCannot Reproduce
Resolution Date2015-09-29T05:00:09.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsaccessibility, accessibility_module
ReporterManojkumar Murugesan
AssigneeShak Hossain
Created2015-03-12T11:08:59.000+0000
Updated2016-03-08T07:57:40.000+0000

Description

iOS

Enable the second parameter for Ti.App.fireSystemEvent when event name (the first argument is) Ti.App.iOS.EVENT_ACCESSIBILITY_SCREEN_CHANGED that allows the developer to force the accessibility system to focus on a particular element. Reference : https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/Accessibility/AccessibilityfromtheViewControllersPerspective.html

Android

Enable the same, equivalent on android. Reference : http://stackoverflow.com/questions/24809471/android-how-to-force-explore-by-touch-talkback-to-repeat-the-contentdescription

Comments

  1. Manojkumar Murugesan 2015-03-12

    It may be a simple fix, but not sure.

    Adding this to AppModule.m at line no. 492 worked for me.

               if([args count] > 1){
                   ENSURE_ARG_AT_INDEX(argument, args, 1, TiViewProxy);
               }
       
  2. Papia Chowdhury 2015-09-02

    Hello, [Titanium.App.iOS.EVENT_ACCESSIBILITY_SCREEN_CHANGED](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.App-property-EVENT_ACCESSIBILITY_CHANGED), can be used to alert the accessibility system when a new view appears that comprises a major portion of the screen. When your application fires this event, Titanium calls UIAccessibilityScreenChangedNotification in the iOS UIAccessibility Protocol. No second parameter is required when firing this event with fireSystemEvent. Thanks.
  3. Manojkumar Murugesan 2015-09-29

    Hi [~pchowdhury], You are right but only when we want the accessibility system to focus something during *Titanium.App.iOS.EVENT_ACCESSIBILITY_SCREEN_CHANGED* event but *this fix is essential when we want to force the accessibility system to focus some component even if there is no major change on screen.* for i.e Upon turning on / off a switch focus some label / clicking a button which makes minor changes on UI should read it. When this is possible with native apps, it does make sense here?

JSON Source