Ejemplo n.º 1
0
        public static void Init()
        {
            if (IsInitialized)
            {
                return;
            }
            IsInitialized = true;

            Log.Listeners.Add(new DelegateLogListener((c, m) => System.Diagnostics.Debug.WriteLine(m, c)));

            Device.SetIdiom(TargetIdiom.Desktop);
            Device.PlatformServices = new BlazorMobilePlatformServices();
            Device.Info             = new BlazorMobileDeviceInfo();

            WebApplicationFactory.Init();
        }
Ejemplo n.º 2
0
 public static void Init()
 {
     InitComponent();
     WebApplicationFactory.Init();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Init the WebApplicationFactory with the given app stream resolver.
 /// Shorthand for <see cref="WebApplicationFactory.RegisterAppStreamResolver" />
 /// </summary>
 /// <param name="appStreamResolver"></param>
 public static void Init(Func <Stream> appStreamResolver)
 {
     InitComponent();
     WebApplicationFactory.Init(appStreamResolver);
 }
Ejemplo n.º 4
0
 public static void Init(Android.App.Activity activity)
 {
     InitComponent(activity);
     WebApplicationFactory.Init();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Init the WebApplicationFactory with the given app stream resolver.
 /// Shorthand for <see cref="WebApplicationFactory.RegisterAppStreamResolver" />
 /// </summary>
 /// <param name="appStreamResolver"></param>
 public static void Init(Android.App.Activity activity, Func <Stream> appStreamResolver)
 {
     InitComponent(activity);
     WebApplicationFactory.Init(appStreamResolver);
 }
Ejemplo n.º 6
0
 public static void Init(BlazorMobileFormsAppCompatActivity activity)
 {
     InitComponent(activity);
     WebApplicationFactory.Init();
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Init the WebApplicationFactory with the given app stream resolver.
 /// Shorthand for <see cref="WebApplicationFactory.RegisterAppStreamResolver" />
 /// </summary>
 /// <param name="appStreamResolver"></param>
 public static void Init(BlazorMobileFormsAppCompatActivity activity, Func <Stream> appStreamResolver)
 {
     InitComponent(activity);
     WebApplicationFactory.Init(appStreamResolver);
 }