checkMicrophonePermissionWindows method

  1. @override
Future<String> checkMicrophonePermissionWindows()
override

Check microphone permission status on Windows

Implementation

@override
Future<String> checkMicrophonePermissionWindows() async {
  try {
    debugPrint('Checking microphone permission on Windows');
    final result = await methodChannel.invokeMethod<String>(
      'checkMicrophonePermissionWindows',
    );
    debugPrint('Windows microphone permission status: $result');
    return result ?? 'denied';
  } on PlatformException catch (e) {
    debugPrint(
      'Error checking microphone permission on Windows: ${e.message}',
    );
    return 'denied';
  }
}