Skip to main content

microphone_permission_status

Function microphone_permission_status 

Source
pub fn microphone_permission_status() -> CameraPermission
Expand description

Probe the OS for microphone permission (M-MIC.2 / AUT-279 + 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.

Reuses CameraPermission rather than introducing a separate MicrophonePermission enum — the three states are structurally identical and the picker components key off the variant tags, not the type name.