Maui-Plugin.Maui.ScreenSecurity

[删除(380066935@qq.com或微信通知)]

Plugin.Maui.ScreenSecurity

FabriBertani/Plugin.Maui.ScreenSecurity: Safeguard your .NET MAUI app effortlessly by preventing content exposure, screenshots, and recordings with ease. (github.com)

Plugin.Maui.ScreenSecurity provides a seamless solution for preventing content exposure, as well as blocking screenshots and recordings within your .NET MAUI application

Platforms supported

PlatformVersion
.Net MAUI AndroidAPI 21+
.Net MAUI iOSiOS 14+
Installation

Plugin.Maui.ScreenSecurity is available via NuGet, grab the latest package and install it on your solution:

Install-Package Plugin.Maui.ScreenSecurity

In your MauiProgram class add the following using statement:

using Plugin.Maui.ScreenSecurity;

Finally, add the default instance of the plugin as a singleton to inject it in your code late:

builder.Services.AddSingleton<IScreenSecurity>(ScreenSecurity.Default);