AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeAudio];
switch (authStatus) {
case AVAuthorizationStatusNotDetermined:
break;
case AVAuthorizationStatusRestricted:
break;
case AVAuthorizationStatusDenied:
未开启
break;
case AVAuthorizationStatusAuthorized:
已开启
break;
default:
break;
}
网友评论