Skip to content

Commit

Permalink
Add isSamsungTalkbackEnabled
Browse files Browse the repository at this point in the history
And upgrade sample app to v1.0.3
  • Loading branch information
ninovanhooff committed Sep 24, 2021
1 parent fb45542 commit bbc5010
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ Not all fields are supported on all versions of Android. If unsupported, the cor
| `isClosedCaptioningEnabled` | bool | Live transcription of any spoken audio |
| `isTouchExplorationEnabled` | bool | Wehether any assistive feature is enabled where the user navigates the interface by touch. Most probably TalkbBack, or similar
| `isTalkBackEnabled` | bool | iOS: VoiceOver
| `isSamsungTalkBackEnabled` | bool | Specifically checks whether com.samsung.android.app.talkback.talkbackservice is enabled
| `isVoiceAccessEnabled` | bool | iOS: Voice Control
| `fontScale` | float | 1.0 is regular scaling |
| `displayScale` | float | Overall interface scaling ie. display density scaling. 1.0 is regular scaling |
| `enabledAccessibilityServices` | Array\<String\> | List of enabled accessibility package names, eg ['com.accessibility.service1', 'nl.accessibility.service2'] |

### Preferences

Expand Down
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -76,5 +76,5 @@ dependencies {


localImplementation project(path: ':q42stats')
jitpackImplementation 'com.github.q42:q42stats.android:0.1.0'
jitpackImplementation 'com.github.q42:q42stats.android:1.0.3'
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ internal object AccessibilityCollector {
put("isAccessibilityManagerEnabled", accessibilityManager.isEnabled)
put("isTouchExplorationEnabled", accessibilityManager.isTouchExplorationEnabled)
put("isTalkBackEnabled", services.any { it.contains("talkback") })
put(
"isSamsungTalkbackEnabled",
services.any { it == "com.samsung.android.app.talkback.talkbackservice" }
)
put("isVoiceAccessEnabled", services.any { it.contains("voiceaccess") })
put("fontScale", configuration.fontScale)
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
Expand Down

0 comments on commit bbc5010

Please sign in to comment.