maui-app-lifecycle
Pass
Audited by Gen Agent Trust Hub on Apr 22, 2026
Risk Level: SAFE
Full Analysis
- Application State Preservation: The skill demonstrates using the
PreferencesAPI for saving transient application state (such as draft text or scroll position) during theOnStoppedevent. This is a recommended practice for maintaining user context in mobile and desktop applications. - Cross-Platform Event Handling: It provides patterns for subscribing to standard
Microsoft.Maui.Controls.Windowevents likeCreated,Activated, andStopped. These are managed lifecycle events within the .NET MAUI framework. - Native Lifecycle Integration: The skill includes instructions for using
ConfigureLifecycleEventsto access platform-specific callbacks for Android, iOS, and Windows. This allows developers to hook into native operating system events in a structured and supported manner. - Standard Implementation: All code examples use standard C# and .NET MAUI syntax without any external dependencies, remote script execution, or unsafe dynamic code patterns.
Audit Metadata