Ejemplo n.º 1
0
 public static void Init(InitializationOptions options)
 {
     Profile.FrameBegin();
     SetupInit(
         new MauiContext(options.Activity),
         options.ResourceAssembly,
         options
         );
     Profile.FrameEnd();
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
Archivo: Forms.cs Proyecto: tytok/maui
 public static void Init(InitializationOptions options) =>
 SetupInit(new MauiContext(), options);
Ejemplo n.º 4
0
 public static void Init(InitializationOptions options) =>
 SetupInit(new MauiContext(), options.LaunchActivatedEventArgs, null, null, options);