-
public final class ViewEvent.AccessibilityCompact representation of accessibility features for a view
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classViewEvent.Accessibility.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringtextSizeprivate final BooleanscreenReaderEnabledprivate final BooleanboldTextEnabledprivate final BooleanreduceTransparencyEnabledprivate final BooleanreduceMotionEnabledprivate final BooleanbuttonShapesEnabledprivate final BooleaninvertColorsEnabledprivate final BooleanincreaseContrastEnabledprivate final BooleanassistiveSwitchEnabledprivate final BooleanassistiveTouchEnabledprivate final BooleanvideoAutoplayEnabledprivate final BooleanclosedCaptioningEnabledprivate final BooleanmonoAudioEnabledprivate final BooleanshakeToUndoEnabledprivate final BooleanreducedAnimationsEnabledprivate final BooleanshouldDifferentiateWithoutColorprivate final BooleangrayscaleEnabledprivate final BooleansingleAppModeEnabledprivate final BooleanonOffSwitchLabelsEnabledprivate final BooleanspeakScreenEnabledprivate final BooleanspeakSelectionEnabledprivate final BooleanrtlEnabled
-
Constructor Summary
Constructors Constructor Description ViewEvent.Accessibility(String textSize, Boolean screenReaderEnabled, Boolean boldTextEnabled, Boolean reduceTransparencyEnabled, Boolean reduceMotionEnabled, Boolean buttonShapesEnabled, Boolean invertColorsEnabled, Boolean increaseContrastEnabled, Boolean assistiveSwitchEnabled, Boolean assistiveTouchEnabled, Boolean videoAutoplayEnabled, Boolean closedCaptioningEnabled, Boolean monoAudioEnabled, Boolean shakeToUndoEnabled, Boolean reducedAnimationsEnabled, Boolean shouldDifferentiateWithoutColor, Boolean grayscaleEnabled, Boolean singleAppModeEnabled, Boolean onOffSwitchLabelsEnabled, Boolean speakScreenEnabled, Boolean speakSelectionEnabled, Boolean rtlEnabled)
-
Method Summary
Modifier and Type Method Description final StringgetTextSize()final BooleangetScreenReaderEnabled()final BooleangetBoldTextEnabled()final BooleangetReduceTransparencyEnabled()final BooleangetReduceMotionEnabled()final BooleangetButtonShapesEnabled()final BooleangetInvertColorsEnabled()final BooleangetIncreaseContrastEnabled()final BooleangetAssistiveSwitchEnabled()final BooleangetAssistiveTouchEnabled()final BooleangetVideoAutoplayEnabled()final BooleangetClosedCaptioningEnabled()final BooleangetMonoAudioEnabled()final BooleangetShakeToUndoEnabled()final BooleangetReducedAnimationsEnabled()final BooleangetShouldDifferentiateWithoutColor()final BooleangetGrayscaleEnabled()final BooleangetSingleAppModeEnabled()final BooleangetOnOffSwitchLabelsEnabled()final BooleangetSpeakScreenEnabled()final BooleangetSpeakSelectionEnabled()final BooleangetRtlEnabled()final JsonElementtoJson()-
-
Constructor Detail
-
ViewEvent.Accessibility
ViewEvent.Accessibility(String textSize, Boolean screenReaderEnabled, Boolean boldTextEnabled, Boolean reduceTransparencyEnabled, Boolean reduceMotionEnabled, Boolean buttonShapesEnabled, Boolean invertColorsEnabled, Boolean increaseContrastEnabled, Boolean assistiveSwitchEnabled, Boolean assistiveTouchEnabled, Boolean videoAutoplayEnabled, Boolean closedCaptioningEnabled, Boolean monoAudioEnabled, Boolean shakeToUndoEnabled, Boolean reducedAnimationsEnabled, Boolean shouldDifferentiateWithoutColor, Boolean grayscaleEnabled, Boolean singleAppModeEnabled, Boolean onOffSwitchLabelsEnabled, Boolean speakScreenEnabled, Boolean speakSelectionEnabled, Boolean rtlEnabled)
- Parameters:
textSize- User’s preferred text scale relative to the default system size.screenReaderEnabled- Indicates whether a screen reader is currently active.boldTextEnabled- Indicates whether the system-wide bold text accessibility setting is enabled.reduceTransparencyEnabled- Indicates whether the system-wide reduce transparency setting is enabled.reduceMotionEnabled- Indicates whether the system-wide reduce motion setting is enabled.buttonShapesEnabled- Indicates whether the system-wide button shapes setting is enabled.invertColorsEnabled- Indicates whether the system-wide color inversion setting is enabled.increaseContrastEnabled- Indicates whether the system-wide increase contrast setting is enabled.assistiveSwitchEnabled- Indicates whether an alternative input method like Switch Control or Switch Access is currently enabled.assistiveTouchEnabled- Indicates whether the system-wide AssistiveTouch feature is currently enabled.videoAutoplayEnabled- Indicates whether the video autoplay setting is enabled in the system or application.closedCaptioningEnabled- Indicates whether closed captioning is enabled for media playback.monoAudioEnabled- Indicates whether the system-wide mono audio setting is enabled.shakeToUndoEnabled- Indicates whether the Shake to Undo feature is enabled.reducedAnimationsEnabled- Indicates whether the user prefers reduced animations or cross-fade transitions.shouldDifferentiateWithoutColor- Indicates whether the system should differentiate interface elements without relying solely on color.grayscaleEnabled- Indicates whether the device display is currently using grayscale mode.singleAppModeEnabled- Indicates whether the device is currently locked to a single app through Guided Access or Screen Pinning.onOffSwitchLabelsEnabled- Indicates whether on/off switch labels are enabled in the system settings.speakScreenEnabled- Indicates whether the Speak Screen feature is enabled.speakSelectionEnabled- Indicates whether the text-to-speech selection feature is enabled.rtlEnabled- Indicates whether the right-to-left support is enabled.
-
-
Method Detail
-
getTextSize
final String getTextSize()
-
getScreenReaderEnabled
final Boolean getScreenReaderEnabled()
-
getBoldTextEnabled
final Boolean getBoldTextEnabled()
-
getReduceTransparencyEnabled
final Boolean getReduceTransparencyEnabled()
-
getReduceMotionEnabled
final Boolean getReduceMotionEnabled()
-
getButtonShapesEnabled
final Boolean getButtonShapesEnabled()
-
getInvertColorsEnabled
final Boolean getInvertColorsEnabled()
-
getIncreaseContrastEnabled
final Boolean getIncreaseContrastEnabled()
-
getAssistiveSwitchEnabled
final Boolean getAssistiveSwitchEnabled()
-
getAssistiveTouchEnabled
final Boolean getAssistiveTouchEnabled()
-
getVideoAutoplayEnabled
final Boolean getVideoAutoplayEnabled()
-
getClosedCaptioningEnabled
final Boolean getClosedCaptioningEnabled()
-
getMonoAudioEnabled
final Boolean getMonoAudioEnabled()
-
getShakeToUndoEnabled
final Boolean getShakeToUndoEnabled()
-
getReducedAnimationsEnabled
final Boolean getReducedAnimationsEnabled()
-
getShouldDifferentiateWithoutColor
final Boolean getShouldDifferentiateWithoutColor()
-
getGrayscaleEnabled
final Boolean getGrayscaleEnabled()
-
getSingleAppModeEnabled
final Boolean getSingleAppModeEnabled()
-
getOnOffSwitchLabelsEnabled
final Boolean getOnOffSwitchLabelsEnabled()
-
getSpeakScreenEnabled
final Boolean getSpeakScreenEnabled()
-
getSpeakSelectionEnabled
final Boolean getSpeakSelectionEnabled()
-
getRtlEnabled
final Boolean getRtlEnabled()
-
toJson
final JsonElement toJson()
-
-
-
-