diff --git a/ios/Classes/SwiftFlutterTwilioVoicePlugin.swift b/ios/Classes/SwiftFlutterTwilioVoicePlugin.swift index 6e3df69..eb0b8bb 100644 --- a/ios/Classes/SwiftFlutterTwilioVoicePlugin.swift +++ b/ios/Classes/SwiftFlutterTwilioVoicePlugin.swift @@ -288,15 +288,15 @@ public class SwiftFlutterTwilioVoicePlugin: NSObject, FlutterPlugin, FlutterStr func checkRecordPermission(completion: @escaping (_ permissionGranted: Bool) -> Void) { switch AVAudioSession.sharedInstance().recordPermission { - case AVAudioSessionRecordPermission.granted: + case AVAudioSession.RecordPermission.granted: // Record permission already granted. completion(true) break - case AVAudioSessionRecordPermission.denied: + case AVAudioSession.RecordPermission.denied: // Record permission denied. completion(false) break - case AVAudioSessionRecordPermission.undetermined: + case AVAudioSession.RecordPermission.undetermined: // Requesting record permission. // Optional: pop up app dialog to let the users know if they want to request. AVAudioSession.sharedInstance().requestRecordPermission({ (granted) in