Security & identity
Plugin.Maui.ScreenGuard
Screenshot and recents-thumbnail guard
Current NuGet 1.0.1
Protects sensitive screens: FLAG_SECURE on Android blanks recents and blocks screenshots; iOS shows a capture overlay and reports recording. iOS cannot block screenshots.
Install
dotnet add package Plugin.Maui.ScreenGuardPackage ID: Plugin.Maui.ScreenGuard
Plugin.Maui.* restores from GitHub Packages. Add the org feed first — see Use nuvyntralabs GitHub Packages from a C# project.
Overview
Plugin.Maui.ScreenGuard is a screenshot and recents guard for MAUI. Android sets FLAG_SECURE so recents are blank and screenshots are blocked. iOS cannot block screenshots; the plugin shows a capture overlay and raises CaptureStateChanged / IsCaptured when the screen is being recorded. Protect / Unprotect is reference-counted. SetProtected(page, true) ties a hold to a page. It is not AppLock and not FileVault.
Current release
- 1.0.1. Current nuget.org pack.
- 1.0.0. First stable release. Protect / Unprotect, page helper, iOS CaptureStateChanged.
Full upgrade map for the 3 September 2026 hardening wave: Hardened plugin releases.
Capabilities
- Reference-counted Protect / Unprotect.
- ScreenGuard.SetProtected(page, true) for a single screen.
- Android FLAG_SECURE blanks recents and blocks screenshots.
- iOS capture overlay and CaptureStateChanged — not a screenshot block.
- .NET MAUI
- Privacy
- FLAG_SECURE
- C#
Discussion
Comment on Plugin.Maui.ScreenGuard. The thread lives on this component's GitHub repository (nuvyntralabs/Plugin.Maui.ScreenGuard). Sign in with GitHub — Giscus uses Discussions, Utterances uses Issues.