flutter_accessibility_service
1.2.0, released 5 months ago by iheb.tech
Flutter plugin to interact with Android Accessibility Service for events and actions.
What it does
Provides APIs to check and request accessibility permission, stream accessibility events, and perform actions or gestures via the Android accessibility service.
AI-written summary of version 1.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to monitor Android accessibility events (e.g., window changes, text changes)
- You want to automate UI interactions on Android using accessibility actions or gestures
Skip it when
- Your app targets iOS or other platforms
- You need a cross‑platform solution without native Android setup
Strengths
- Low‑level access to Android accessibility events
- Supports gesture simulation and action execution
- Event stream makes reactive handling easy
Weaknesses
- Android‑only; no iOS support
- Requires manual AndroidManifest and XML configuration
- Documentation is limited
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Add a <service> entry with BIND_ACCESSIBILITY_SERVICE permission to AndroidManifest and create res/xml/accessibilityservice.xml; request permission at runtime.
final bool status = await FlutterAccessibilityService.requestAccessibilityPermission();
FlutterAccessibilityService.accessStream.listen((event) {
log('Current Event: $event');
});Alternatives
Packages that do the same job and could replace flutter_accessibility_service.
- flutter_foreground_task
Implement and manage foreground services on Android and iOS platforms.
89Compare - android_alarm_manager_plus
Access Android AlarmManager service and run Dart code in the background.
89Compare - google_api_availability
Check the availability of Google Play services on an Android device.
88Compare - flutter_ble_peripheral
Set a device into BLE peripheral mode and advertise custom services.
86Compare