Closed itsmhe closed 3 days ago
use core_graphics::access::ScreenCaptureAccess;
pub fn has_permission() -> bool {
ScreenCaptureAccess::default().preflight()
}
pub fn request_permission() -> bool {
ScreenCaptureAccess::default().request()
}
Code signing fixed it for me. Thanks for the help.
Hi there,
im using your xcap in a tauri application and when i take a screenshot with this library of the whole screen i can only see the application itself and the desktop.
Even when i run the code from the readme.md file to get the screenshots, i only get the background with no applications on it.
I suspect this is some kind of privacy or permissions problem, but I do not know where to start.