共用方式為


Microsoft.Maui.LifecycleEvents Namespace

Provides interfaces and classes to enable the platform specific lifecycle events configuration in the AppHostBuilder.

Classes

AppHostBuilderExtensions
LifecycleBuilderExtensions
LifecycleEventRegistration
LifecycleEventService
LifecycleEventServiceExtensions
MauiAppHostBuilderExtensions

Interfaces

ILifecycleBuilder
ILifecycleEventService