Beispiel #1
0
 public static void Init(InitializationOptions options)
 {
     Profile.FrameBegin();
     SetupInit(
         new MauiContext(options.Activity),
         options.ResourceAssembly,
         options
         );
     Profile.FrameEnd();
 }
Beispiel #2
0
        public static IAppHostBuilder RegisterCompatibilityForms(this IAppHostBuilder builder)
        {
            // TODO: This should not be immediately run, but rather a registered delegate with values
            //       of the Context and LaunchActivatedEventArgs passed in.

#if __ANDROID__
            var options = new InitializationOptions(global::Android.App.Application.Context, null, null);
#elif __IOS__
            var options = new InitializationOptions();
#elif WINDOWS
            var options = new InitializationOptions(MauiWinUIApplication.Current.LaunchActivatedEventArgs);
#endif

            options.Flags |= InitializationFlags.SkipRenderers;

            Forms.Init(options);

            return(builder);
        }
Beispiel #3
0
 public static void Init(InitializationOptions options) =>
 SetupInit(new MauiContext(), options);
Beispiel #4
0
 public static void Init(InitializationOptions options) =>
 SetupInit(new MauiContext(), options.LaunchActivatedEventArgs, null, null, options);