setAndroidScreenSecure method
是否禁用设备截屏或录屏 只支持Android
Implementation
Future<void> setAndroidScreenSecure(bool isSecure) async {
if (defaultTargetPlatform == TargetPlatform.android) {
return await _methodChannel
?.invokeMethod("setAndroidScreenSecure", {"isSecure": isSecure});
} else {
debugPrint('FlutterSecureScreen 仅Android平台支持禁用截屏和录屏 / this method is only supported android');
return null;
}
}