I don't want users to take screenshot or record screen of my app. I have added secure flag to the window. This prevents user from taking screenshots and recording screen.
If the screen recording is on, my app prevents the content from being recorded but the audio gets recorded.
On some rooted devices, the secure flags may not work as expected. So I just want to detect if any screen recording app/process is running in background so that I can hide sensitive data and prevent it from being recorded.
Is there any way I can detect if the screen recording is on?