Accessibility Actions
Table of contents
- Set Auto Answer Calls
- Set Background Sound
- Set Background Sound Volume
- Set Background Sounds
- Set Media Background Sounds
- Set Switch Control
- Toggle Auto Answer Calls
- Toggle Background Sounds
- Toggle Media Background Sounds
- Toggle Switch Control
- Hearing
- Vision
- Set Classic Invert
- Set Color Filters
- Set Reduce Motion
- Set Reduce Transparency
- Set Smart Invert
- Set Text Size
- Set Voice Control
- Set White Point
- Set Zoom
- Toggle Classic Invert
- Toggle Color Filters
- Toggle Reduce Motion
- Toggle Reduce Transparency
- Toggle Smart Invert
- Toggle Voice Control
- Toggle White Point
- Toggle Zoom
To use actions in this category, use this include statement:
#include 'actions/a11y'
Set Auto Answer Calls
setAutoAnswerCalls(bool status)
Set Background Sound
Set the background sound that plays.
enum backgroundSound {
'BalancedNoise',
'BrightNoise',
'DarkNoise',
'Ocean',
'Rain',
'Stream',
}
setBackgroundSound(backgroundSound ?sound = "BalancedNoise")
Set Background Sound Volume
setBackgroundSoundsVolume(float volume)
Set Background Sounds
setBackgroundSounds(bool status)
Set Media Background Sounds
setMediaBackgroundSounds(bool status)
Set Switch Control
setSwitchControl(bool status)
Toggle Auto Answer Calls
toggleAutoAnswerCalls()
Toggle Background Sounds
toggleBackgroundSounds()
Toggle Media Background Sounds
toggleMediaBackgroundSounds()
Toggle Switch Control
toggleSwitchControl()
Hearing
Set Closed Captions SDH
setClosedCaptionsSDH(bool status)
Set LED Flash
setLEDFlash(bool status)
Set Left-Right Balance
setLeftRightBalance(bool status, number ?value)
Set Live Captions
setLiveCaptions(bool status)
Set Mono Audio
setMonoAudio(bool status)
Set Sound Recognition
enum soundRecognitionOperations {
'pause',
'activate',
'toggle',
}
setSoundRecognition(soundRecognitionOperations ?operation = "activate")
Toggle Closed Captions SDH
toggleClosedCaptionsSDH()
Toggle LED Flash
toggleLEDFlash()
Toggle Left-Right Balance
toggleLeftRightBalance(number ?value)
Toggle Live Captions
toggleLiveCaptions()
Toggle Mono Audio
toggleMonoAudio()
Vision
Set Classic Invert
setClassicInvert(bool status)
Set Color Filters
setColorFilters(bool status)
Set Reduce Motion
setReduceMotion(bool status)
Set Reduce Transparency
setReduceTransparency(bool status)
Set Smart Invert
setSmartInvert(bool status)
Set Text Size
Sets the system text size.
enum textSizes {
'Accessibility Extra Extra Extra Large',
'Accessibility Extra Extra Large',
'Accessibility Extra Large',
'Accessibility Large',
'Accessibility Medium',
'Extra Extra Extra Large',
'Extra Extra Large',
'Extra Large',
'Default',
'Medium',
'Small',
'Extra Small',
}
setTextSize(textSizes size)
Set Voice Control
setVoiceControl(bool status)
Set White Point
setWhitePoint(bool status)
Set Zoom
setZoom(bool status)
Toggle Classic Invert
toggleClassicInvert()
Toggle Color Filters
toggleColorFilters()
Toggle Reduce Motion
toggleReduceMotion()
Toggle Reduce Transparency
toggleReduceTransparency()
Toggle Smart Invert
toggleSmartInvert()
Toggle Voice Control
toggleVoiceControl()
Toggle White Point
toggleWhitePoint()
Toggle Zoom
toggleZoom()