8 private readonly Lazy<UIWindow?> _window =
new(IOSHelpers.GetWindow);
17 BlurProtectionManager.HandleBlurProtection(
true, IOSHelpers.GetCurrentTheme(), _window.Value);
19 HandleScreenCaptureProtection(
true,
true);
36 if (blurScreenProtection)
38 BlurProtectionManager.HandleBlurProtection(
true, IOSHelpers.GetCurrentTheme(), _window.Value);
41 HandleScreenCaptureProtection(preventScreenshot, preventScreenRecording);
49 BlurProtectionManager.HandleBlurProtection(
false);
51 ScreenRecordingProtectionManager.HandleScreenRecordingProtection(
false);
53 ScreenshotProtectionManager.HandleScreenshotProtection(
false);
66 BlurProtectionManager.HandleBlurProtection(
true, style, _window.Value);
74 BlurProtectionManager.HandleBlurProtection(
false);
86 ColorProtectionManager.HandleColorProtection(
true, hexColor, _window.Value);
94 ColorProtectionManager.HandleColorProtection(
false);
104 ImageProtectionManager.HandleImageProtection(
true, image, _window.Value);
112 ImageProtectionManager.HandleImageProtection(
false);
126 ScreenRecordingProtectionManager.HandleScreenRecordingProtection(
true, withColor, _window.Value);
134 ScreenRecordingProtectionManager.HandleScreenRecordingProtection(
false);
143 ScreenshotProtectionManager.HandleScreenshotProtection(
true, _window.Value);
151 ScreenshotProtectionManager.HandleScreenshotProtection(
false);
154 private void HandleScreenCaptureProtection(
bool preventScreenshot,
bool preventScreenRecording)
156 ScreenshotProtectionManager.HandleScreenshotProtection(preventScreenshot, _window.Value);
158 ScreenRecordingProtectionManager.HandleScreenRecordingProtection(preventScreenRecording,
string.Empty, _window.Value);
void DisableScreenshotProtection()
Turn off the screenshot protection.
void ActivateScreenSecurityProtection(bool blurScreenProtection=true, bool preventScreenshot=true, bool preventScreenRecording=true)
Activates the screen security protection when the app is sent to Recents screen or the App Switcher....
void DisableColorScreenProtection()
Removes the Color layer and re-enables screen content exposure.
void DeactivateScreenSecurityProtection()
Deactivates all screen security protection.
void EnableScreenRecordingProtection(string withColor="", bool withBlur=true)
Prevent screen content from being recorded by the system or external app. It uses the Blur layer by d...
void EnableBlurScreenProtection(ThemeStyle style=ThemeStyle.Light)
Prevent screen content from being exposed by using a Blur layer when the app is sent to Background or...
void DisableScreenRecordingProtection()
Turn off the screen recording protection.
void EnableImageScreenProtection(string image)
Prevent screen content from being exposed by using an Image when the app is sent to Background or the...
void EnableScreenshotProtection()
Prevent screen content from being exposed when taking a screenshot by placing a black screen.
void DisableBlurScreenProtection()
Removes the Blur layer and re-enables screen content exposure.
void DisableImageScreenProtection()
Removes the Image and re-enables screen content exposure.
void ActivateScreenSecurityProtection()
Activates the screen security protection when the app is sent to Recents screen or the App Switcher....
void EnableColorScreenProtection(string hexColor="#FFFFFF")
Prevent screen content from being exposed by using a Color layer when the app is sent to Background o...