public IApplication Build() { var app = new MauiApplication(); #if __IOS__ app.PlatformLifecycleHandlers = platformLifecycleHandlers; #elif __ANDROID__ app.PlatformLifecycleHandlers = platformLifecycleHandlers; #endif app.CommonLifecycleHandlers = commonLifecycleHandlers; return(app); }
public static void Startup <TStartup>(TStartup instance) where TStartup : IStartup { // Only run once especially with android if (startupRan) { return; } startupRan = true; var appBuilder = new MauiApplicationBuilder(); instance.Configure(appBuilder); Application = (MauiApplication)appBuilder.Build(); }
public virtual void OnResume(MauiApplication app) { }
public virtual void OnPause(MauiApplication app) { }
public virtual void OnDestroy(MauiApplication app) { }
public virtual void OnCreate(MauiApplication app) { }
public LifecycleCallbacks(MauiApplication mauiApplication) { mauiApp = mauiApplication; }