Initializing an AVCaptureDeviceInput for a camera fails in macOS Mojave if the user has not granted permissions. When trying to initialize, the system automatically presents the permission request dialog. There seems to be no way though to get notified of the user response.
+ (instancetype)deviceInputWithDevice:(AVCaptureDevice *)device error:(NSError * _Nullable *)outError;
https://developer.apple.com/documentation/avfoundation/avcapturedeviceinput/1450880-deviceinputwithdevice
I'm looking for an analog way to get notified as with requesting audio permissions in:
func requestRecordPermission(_ response: @escaping PermissionBlock)
https://developer.apple.com/documentation/avfoundation/avaudiosession/1616601-requestrecordpermission
The Protecting the User's Privacy guide does not outline any other methods for camera access.