System Overlay Detector
<p>Is there a way to detect within my own app that a Screen Overlay is currently present? For example, I see in the settings that they detect it: <a href="https://i.stack.imgur.com/BEGzf.png" rel="nofollow"><img src="https://i.stack.imgur.com/BEGzf.png" alt="enter image description here"></a></p>

<p>I would like to know if there is a way to detect it myself within my own app.</p>