Plugin.Maui.ScreenSecurity is available via NuGet, grab the latest package and install it on your solution:
Plugin.Maui.ScreenSecurity
Install-Package Plugin.Maui.ScreenSecurity
In your MauiProgram class add the following using statement:
MauiProgram
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);
There was an error while loading. Please reload this page.