I'm looking for a way to detect if the screen is currently being recorded.
Ideally, an event for when the recording starts/stops. Maybe some kind of distributed notification.
My use-case is that I would like to hide my app's menu bar item while the screen is being recorded (opt-in) as it shows date & time and many users don't want the time included in screen recordings.
I tried setting NSWindow#sharingType to .none for the NSStatusBarButton window, but that option seems to only work for screenshots.
The answer should be in Swift.