'Send accessibility events not linked to any composable in Jetpack compose
Trying to announce accessibility when showing a pop up/Dialog. After hours of searching found the following code but this does not work for jetpack compose.
Looking for something similar to the code given below but in Jetpack Compose
if (manager.isEnabled) {
val e = AccessibilityEvent.obtain()
e.eventType = AccessibilityEvent.TYPE_ANNOUNCEMENT
e.className = ChangePassword::class.java.name
e.packageName = context.packageName
e.text.add(errorMessage)
manager.sendAccessibilityEvent(e)
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
