Accessibility: reproduce a sound when an element become focused by screenreader

Poli97Poli97 Member ✭✭

As title, what I want is to reproduce a sound when an element is accessibility focused by the screen reader. In my test app I have two Images containing a picture of a dog and a cat, and I would like to play the respective sounds when screen reader has them on focus. My initial thought was to use the "listeners" of Android and IOs (there should be something like "myElement.IsAccessibilityFocused()" for both) using dependency service but i am not sure how and if I can do that. Another idea was to create a custom class that extend AutomationProperties and add my self a component that reproduce a sound, but even for that I am not sure how to do it.
Any suggestion?

Sign In or Register to comment.