Check for mic permission on iOS 7 without showing prompt

后端 未结 1 1088
时光取名叫无心
时光取名叫无心 2021-01-14 03:43

The only documented method for checking mic permission on iOS 7 that I could find is requestRecordPermission documented on AVAudioSession. https://

相关标签:
1条回答
  • 2021-01-14 04:09

    In iOS 8, they added a new property to AVAudioSession:

    [AVAudioSession sharedInstance].recordPermission
    

    That returns a AVAudioSessionRecordPermission:

    enum {
       AVAudioSessionRecordPermissionUndetermined     = 'undt',
       AVAudioSessionRecordPermissionDenied           = 'deny',
       AVAudioSessionRecordPermissionGranted          = 'grnt'
    };
    typedef NSUInteger  AVAudioSessionRecordPermission;
    

    But there doesn't seem to be a way in iOS 7.

    0 讨论(0)
提交回复
热议问题