I want to check screen sharing is enable by another app like TeamViewer
or any remote connect app. And disable all the screen sharing and screen recording when my mac app is launch. In iOS UIScreen.isCaptured
property is provided but for mac os
apps I can't find such property.
Asked
Active
Viewed 481 times
5

Krunal Nagvadia
- 1,083
- 2
- 12
- 33
-
any luck? looking for the same solution – Akash Kundu Aug 28 '21 at 21:04
-
@AkashKundu did u figure out any solution ? – Mohamed ِRadwan Dec 15 '22 at 18:19
-
@MohamedِRadwan Unfortunately no. After looking into it, IIRC, multiple websites/apps can share screen at the same time and there's no central API (atleast on Mac) that provides that context. I might be wrong and there might be lower level things you can do, but I didn't look into it that deep. – Akash Kundu Dec 16 '22 at 19:04
-
There's not an AppKit API to detect screen capture as of now. I will note the Mac Catalyst API `UIScreen.isCaptured` works for folks brining an iOS app to the Mac. – Jordan H Dec 19 '22 at 23:19