How to detect Screen Sharing is enabled, and stop it, my code working for google meet, but it not working for MS Teams

697 views Asked by At
val displayManager =
       applicationContext.getSystemService(Context.DISPLAY_SERVICE) as DisplayManager
    val var1: Array<Display> = displayManager.displays
    val var2 =displayManager.getDisplays(DisplayManager.DISPLAY_CATEGORY_PRESENTATION)

    Log.i("SIze1",""+var1.size.toString())
    Log.i("SIze2",""+var2.size.toString())

This is my code for Display Screens, Its working properly for Google meet but not working for MS Teams, what i need to do?, It's happening on all android versions and teams app.

0

There are 0 answers