Skip to content

Accessibility support for custom actions #18432

@jonahwilliams

Description

@jonahwilliams

cc @DaveShuckerow

On Android, a re-orderable list will also present reorder options in the local context menu so that they can be accessed via alternative inputs. For an example, see the language selection in the Settings app. iOS presents similar options

We could expose an API to add local context actions which would need to callback into dart code. Alternatively we could only support a predefined list of local context actions and add them to the semantics widget.

To be as backwards compatible as possible, the implementation on the Android side would use the support libraries, but this seems to be blocked by #11099

Relevant Android APIs:
https://developer.android.com/reference/android/view/accessibility/AccessibilityNodeInfo.AccessibilityAction

Relevant iOS APIs:
https://developer.apple.com/documentation/uikit/accessibility/uiaccessibilityaction#//apple_ref/occ/instp/NSObject/accessibilityCustomActions

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions