android-virtualdisplay

Detect screen mirroring using xamarin.forms.android

本小妞迷上赌 提交于 2020-11-25 04:37:21
问题 I want to detect android screen mirroring to pc. I am currently coding in c# Xamarin Forms Android . What I have done Here someone recommended to use DisplayManager and VirtualDisplay documentation. But I don't know how to achieve that in code. Here someone recommended to check DisplayManager.getDisplays(), and see if it's >1. Again not working to detect vysor I tried with code. 回答1: It is not possible to do so in Android. Reference The closest you could get is by using FlagSecure to prevent