Interface IAccessibilitySettingsManager
interface IAccessibilitySettingsManager
Extends com.amazon.apmf.IStandard
The IAccessibilitySettingsManager interface provides APIs to adjust accessibility
related settings including the status of various assistive
technologies on the system, as well as closed captioning settings.
Access control are performed on all API calls. If the caller
doesn’t have the permission to adjust the accessibility settings, a
SecurityError will be thrown for each API call.
The corresponding API privilege is com.amazon.devconf.privilege.accessibility.write.
This privilege requires any applications which declare the privilege must carry a
signature from the com.amazon.privilege-signer.platform signer in order to be granted.
Methods
setScreenReaderEnabled()
Set whether a screen reader is currently enabled.voidsetScreenReaderEnabled(boolenabled)
Parameters
enabled
bool — Required
the new enabled state.
setScreenMagnifierEnabled()
Set whether a screen magnifier is currently enabled.voidsetScreenMagnifierEnabled(boolenabled)
Parameters
enabled
bool — Required
the new enabled state.
setTextBannerEnabled()
Set whether a Text Banner is currently enabled.voidsetTextBannerEnabled(boolenabled)
Parameters
enabled
bool — Required
the new enabled state.
setColorInversionEnabled()
Set whether color inversion is currently enabled.voidsetColorInversionEnabled(boolenabled)
Parameters
enabled
bool — Required
the new enabled state.
setColorCorrectionMode()
Set the color correction mode.voidsetColorCorrectionMode(com.amazon.kepler.a11y.settings.ColorCorrectionModemode)
Parameters
mode
com.amazon.kepler.a11y.settings.ColorCorrectionMode — Required
the new color correction mode.
setHighContrastTextEnabled()
Set whether high contrast text is currently enabled.voidsetHighContrastTextEnabled(boolenabled)
Parameters
enabled
bool — Required
the new enabled state.
setAudioDescriptionPreferred()
Set whether audio description is currently enabled.voidsetAudioDescriptionPreferred(boolenabled)
Parameters
enabled
bool — Required
the new enabled state.
setTimeToTakeAction()
Set the multiplier that should be used by applications when specifying a timeout to favor customers who need more time to respond to a transient notification or dialog.voidsetTimeToTakeAction(com.amazon.kepler.a11y.settings.TimeoutMultipliervalue)
Parameters
value
com.amazon.kepler.a11y.settings.TimeoutMultiplier — Required
the new timeout multiplier.
getClosedCaptioningSettingsManager()
Get an instance for adjusting closed captioning settings.IClosedCaptioningSettingsManager*getClosedCaptioningSettingsManager()
Returns
IClosedCaptioningSettingsManager*
a IClosedCaptioningSettingsManager instance.

