Relative Content

Tag Archive for androidandroid-jetpack-composeaccessibilitytalkback

How to announce a notification by Talkback in Compose?

I have a “toast” (custom composable using Box, which slides in and out after some time) notification, and I want talkback to read up the contentDescription “immediately” regardless what the user is doing or what is in the focus currently. I tried to set a focusRequest modifier and liveregion sematics, but this just doesn’t wants to work. Also tried localview.announceForAccessibility(“….”) which works but it looks kinda ugly to me. Are there a better of doing this ?