Skip to main content

camera_permission_status

Function camera_permission_status 

Source
pub fn camera_permission_status() -> CameraPermission
Expand description

Probe the OS for camera permission (M-CAM.2 / AUT-256 + M-RECP.7 / AUT-285).

macOS: real AVCaptureDevice.authorizationStatusForMediaType: call via objc2-av-foundation. Returns Granted / NotDetermined / Denied per the live TCC state.

Non-macOS: returns Granted (no TCC-equivalent the recorder needs to probe for camera on Linux / Windows).