Android: Enabled services
Nessuno ha ancora preso questa issue.
- Lingua principale
- C++
- Stelle
- 127k
- Fork
- 25.3k
- Merge medio
- 1g 23h
- PR unite (30g)
- 4
Descrizione
Description
Similar to issue #30864 and heavily intertwined with #30863, it is sometimes useful to query what accessibility services a user has currently enabled. This would allow your to tailor your app's UI to the specific service. For example, if a user has the "Talkback" screen reader service enabled, you probably don't want videos to auto-play, as the audio would be interruptive to the screen readers announcements, and if auto-played without audio the videos would be playing and taking bandwidth without the user likely realizing this was happening.
Right now, there is a method in the AccessibilityInfo API to detect talkback specifically (isScreenReaderEnabled), but there is not a general purpose method to get a list of all enabled services.
React Native version:
v0.63
Expected Behavior
The AccessibilityInfo API should have some general purpose method to get a list of all enabled services.
Android Details
This functionality is available in the AccessibilityManager class via the getEnabledAccessibilityServiceList method.
https://developer.android.com/reference/android/view/accessibility/AccessibilityManager#getEnabledAccessibilityServiceList(int)
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con l’API React Native AccessibilityInfo e il metodo Android AccessibilityManager.getEnabledAccessibilityServiceList collegati nell’issue. Determina come i servizi abilitati dovrebbero essere esposti tramite l’API, quindi verifica che i chiamanti possano recuperare l’elenco completo e che il comportamento sia coerente con le issue di accessibilità correlate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, react-native
- Ambito
- accessibility, mobile
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100