I have a MacOs AppKit app. This app we are developing for examination purposes. We dont want the user to screen record and also to take screen shot.
We created a window and set the sharingType to none. also we have set window.level to CGShieldingWindowLevel()
Below is the code
if let window = NSApp.windows.first {
window.title = "Test"
window.sharingType = .none // Disable screen capture and recording
window.level = NSWindow.Level(rawValue: Int(CGShieldingWindowLevel())) //
}
As per documentation the windows should be excluded from screen capture and also recording
But the window is excluded only from screen capture and not from screen recording. Please give us a solution to prevent screen recording in MacOs native app.
3
0
672