setPrivacyMode method
Implementation
@override
Future<bool> setPrivacyMode(bool enabled) async {
try {
final result = await methodChannel.invokeMethod<bool>('setPrivacyMode', {
'enabled': enabled,
});
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Error calling setPrivacyMode: ${e.message}');
return false;
}
}