openScreenCaptureSettings static method
Open System Preferences to Screen Recording settings (macOS only).
This is useful when the user has denied permission and needs to manually enable it.
Implementation
static Future<void> openScreenCaptureSettings() async {
if (kIsWeb || !Platform.isMacOS) {
return;
}
try {
await _channel.invokeMethod<void>('openScreenCaptureSettings');
} on PlatformException catch (e) {
debugPrint('Failed to open screen capture settings: ${e.message}');
} on MissingPluginException {
debugPrint('QuickRTC platform plugin not available');
}
}