Created on 19 August 2020
icon_unfollowing
Login to follow
mobileaccessibility

MobileAccessibility

Stable version 1.0.1 (Compatible with OutSystems 11)
Uploaded on 19 August 2020 by 
mobileaccessibility

MobileAccessibility

Documentation
1.0.1

Mobile Accessibility Component documentation

This plugin exposes information on the status of various accessibility features of mobile operating systems, including, for example, whether a screen reader is running, invert colors is enabled, and the preferred scaling for text. It also allows an application to send a string to be spoken by the screen reader, or a command to stop the screen reader from speaking.

Supported Platforms

  • Android
  • iOS


Important

There are some actions, such as the speak action, that will only work if the VoiceOver is running.


Available Client Actions

  • IsMobileAccessibilityDefined
  • IsScreenReaderRunning
  • IsVoiceOverRunning
  • IsTalkBackRunning
  • IsChromeVoxActive
  • IsClosedCaptioningEnabled
  • IsGuidedAccessEnabled
  • IsInvertColorsEnabled
  • IsMonoAudioEnabled
  • IsReduceMotionEnabled
  • IsTouchExplorationEnabled
  • GetTextZoom
  • SetTextZoom
  • UpdateTextZoom
  • UsePreferredTextZoom
  • PostNotification
  • Speak
  • Stop


IsMobileAccessibilityDefined

Makes an asynchronous call to native MobileAccessibility to determine if the plugin is loaded.

Returns

True if the plugin is loaded or false if not.

Supported Platforms

  • Android
  • iOS


IsScreenReaderRunning

Makes an asynchronous call to native MobileAccessibility to determine if a screen reader is running.

Returns

True if the screen reader is running or false if not running.

Supported Platforms

  • Android
  • iOS


IsVoiceOverRunning

An iOS-specific proxy for the IsScreenReaderRunning method. This method will return false on Android.

Returns

True if the voice over is running or false if not running.

Supported Platforms

  • iOS


IsTalkBackRunning

An Android OS-specific proxy for the IsScreenReaderRunning method. This method will return false on iOS.

Returns

True if the talk back is running or false if not running.

Supported Platforms

  • Android


IsChromeVoxActive

On Android, this method returns true if ChromeVox is active and properly initialized with access to the text to speech API in the WebView. If TalkBack is running but ChromeVox is not active, this method is useful to alert the user of a potential problem.

Returns

Returns true if ChromeVox is active and properly initialized with access to the text to speech API in the WebView.

Supported Platforms

  • Android


IsBoldTextEnabled

Makes an asynchronous call to native MobileAccessibility to determine if Bold Text is enabled.

Returns

True if bold text is enabled or false if not.

Supported Platforms

  • iOS


IsClosedCaptioningEnabled

Makes an asynchronous call to native MobileAccessibility to determine if system-level closed captioning is enabled on the device.

Returns

True if closed captioning is enabled or false if not

Supported Platforms

  • Android
  • iOS


IsDarkerSystemColorsEnabled

Makes an asynchronous call to native MobileAccessibility to determine if Darker System Colors is enabled.

Returns

True if darker systems colors is enabled or false if not

Supported Platforms

  • iOS


IsGrayscaleEnabled

Makes an asynchronous call to native MobileAccessibility to determine if Grayscale is enabled.

Returns

True if grayscale is enabled or false if not

Supported Platforms

  • iOS


IsGuidedAccessEnabled

Makes an asynchronous call to native MobileAccessibility to determine if Guided Access is enabled.

Returns

True if guided access is enabled or false if not

Supported Platforms

  • iOS


IsInvertColorsEnabled

Makes an asynchronous call to native MobileAccessibility to determine if the display colors have been inverted.

Returns

True if inverted colors is enabled or false if not

Supported Platforms

  • iOS


IsMonoAudioEnabled

Makes an asynchronous call to native MobileAccessibility to determine if mono audio is enabled.

Returns

True if mono audio is enabled or false if not

Supported Platforms

  • iOS


IsReduceMotionEnabled

Makes an asynchronous call to native MobileAccessibility to determine if reduce motion is enabled.

Returns

True if reduce motion is enabled or false if not

Supported Platforms

  • iOS


IsReduceTransparencyEnabled

Makes an asynchronous call to native MobileAccessibility to determine if reduce transparency is enabled.

Returns

True if reduce transparency is enabled or false if not

Supported Platforms

  • iOS


IsSpeakScreenEnabled

Makes an asynchronous call to native MobileAccessibility to determine if speak screen is enabled.

Returns

True if speak screen is enabled or false if not

Supported Platforms

  • iOS


IsSpeakSelectionEnabled

Makes an asynchronous call to native MobileAccessibility to determine if speak selection is enabled.

Returns

True if speak selection is enabled or false if not

Supported Platforms

  • iOS


IsSwitchControlRunning

Makes an asynchronous call to native MobileAccessibility to determine if switch control is running.

Returns

True if switch control is enabled or false if not

Supported Platforms

  • iOS


IsTouchExplorationEnabled

Makes an asynchronous call to native MobileAccessibility to determine if Touch Exploration is enabled on Android.

Returns

True if touch exploration is enabled or false if not

Supported Platforms

  • Android


GetTextZoom

Makes an asynchronous call to native MobileAccessibility to return the current text zoom percent value for the application.

Returns

Current text zoom percent value for the application

Supported Platforms

  • Android
  • iOS


SetTextZoom

Makes an asynchronous call to native MobileAccessibility to set the current text zoom percent value for the WebView.

Returns

True if the zoom was set correctly or false if not

Parameters

TextZoom (Decimal) A percentage value by which text in the WebView should be scaled.

Supported Platforms

  • Android
  • iOS


UpdateTextZoom

Makes an asynchronous call to native MobileAccessibility to retrieve the user's preferred text zoom from system settings and apply it to the application WebView.

Supported Platforms

  • Android
  • iOS7+


UsePreferredTextZoom

Specifies whether or not the application should use the user's preferred text zoom from system settings to scale text within the WebView. When set to true, this method calls UpdateTextZoom() to apply new text zoom settings to the application WebView. When set to false, the application WebView text zoom will be reset to the default value of 100 percent. The plugin uses local storage to retain the preference and will call UpdateTextZoom() after a Cordova resume event.

Parameters

IsUsePreferredZoom: A Boolean value which specifies whether to use the preferred text zoom of a default percent value of 100.

Supported Platforms

  • Android
  • iOS7+


Speak

Speaks a given string through the screenreader. On Android, if ChromeVox is active, it will use the specified queueMode and properties.

Parameters

String (string) A string to be announced by a screen reader.

QueueMode (Optional number) Valid modes are 0 for flush; 1 for queue.

Properties (Optional Object) Speech properties to use for this utterance.

Supported Platforms

  • Android
  • iOS


Stop

Stops speech.

Supported Platforms

  • Android
  • iOS

Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
See all 1 dependencies