#accessibility #ui

accesskit_android

AccessKit UI accessibility infrastructure: Android adapter

2 releases

0.1.1 Mar 17, 2025
0.1.0 Mar 6, 2025

#603 in GUI

Download history 226/week @ 2025-03-05 263/week @ 2025-03-12 1329/week @ 2025-03-19 1260/week @ 2025-03-26

3,078 downloads per month
Used in accesskit_winit

MIT/Apache

360KB
9K SLoC

AccessKit Android adapter

This is the Android adapter for AccessKit.

This adapter is implemented in two layers:

  • The Adapter struct is the core low-level adapter. It provides maximum flexibility in the application threading model, the interface between Java and native code, and the implementation of action callbacks, at the expense of requiring its caller to provide glue code.
  • The InjectingAdapter struct injects accessibility into an arbitrary Android view without requiring the view class to be modified, at the expense of depending on a specific Java class and providing less flexibility in the aspects listed above.

The most convenient way to use InjectingAdapter is to embed a precompiled .dex file containing the associated Java class and its inner classes into the native code. This approach requires the embedded-dex Cargo feature.

Dependencies

~2–13MB
~96K SLoC