setScreenRecordingProtection static method
Implementation
static Future<void> setScreenRecordingProtection({
required ScreenProtectionMode mode,
}) async {
_ensureInitialized();
if (!_enableProtection && mode != ScreenProtectionMode.off) {
return;
}
await _invokeSafely('setScreenRecordingProtection', <String, dynamic>{
'mode': mode.name,
});
}