Disable iOS/Android screen mirroring

user1118764 picture user1118764 · Oct 6, 2016 · Viewed 10.5k times · Source

Is there any way in iOS and Android I can detect if my app is being mirrored (via Miracast/AirPlay/Samsung Smart View), and/or disable mirroring?

Answer

user1118764 picture user1118764 · Dec 1, 2016

I ended up using DisplayManager.getDisplays() to get the list of displays, and check if the length is >1. If so, screen mirroring is detected.