setScreenshotProtectionEnabled static method
Implementation
static Future<void> setScreenshotProtectionEnabled({
required bool enabled,
}) async {
_ensureInitialized();
if (!_enableProtection && enabled) {
return;
}
await _invokeSafely('setScreenshotProtectionEnabled', <String, dynamic>{
'enabled': enabled,
});
}