-
- All Implemented Interfaces:
public final class AccessibilityType used to group Accessibility related properties used to better describe UI elements when tools such as TalkBack are used.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringlabelprivate final StringactionDescriptionprivate final StringstateDescriptionprivate BooleanannounceStateprivate final IntegeractionIdprivate final IntegercollectionItemPosition
-
Method Summary
Modifier and Type Method Description final StringgetLabel()Small description. final StringgetActionDescription()Hint that indicates what happens when element is activated. final StringgetStateDescription()When applicable, description of the element state. final BooleangetAnnounceState()Whether the component should announce its state final UnitsetAnnounceState(Boolean announceState)Whether the component should announce its state final IntegergetActionId()Action type that triggers the Accessibility Service to read the element description final IntegergetCollectionItemPosition()When applicable, position of item in the list -
-
Method Detail
-
getActionDescription
final String getActionDescription()
Hint that indicates what happens when element is activated. Example: "Close consent notice"
-
getStateDescription
final String getStateDescription()
When applicable, description of the element state. Example: "Disabled"
-
getAnnounceState
final Boolean getAnnounceState()
Whether the component should announce its state
-
setAnnounceState
final Unit setAnnounceState(Boolean announceState)
Whether the component should announce its state
-
getActionId
final Integer getActionId()
Action type that triggers the Accessibility Service to read the element description
-
getCollectionItemPosition
final Integer getCollectionItemPosition()
When applicable, position of item in the list
-
-
-
-