コード例 #1
0
        private async Task InitializeAsync(object activationArgs)
        {
            ExecutingPlatform.Current = AppPlatform.UWP;
            LoggerService.Initialize();

            ConfigurationManager.Initialise(PCLAppConfig.FileSystemStream.PortableStream.Current);
            ApplicationLanguages.PrimaryLanguageOverride = GlobalizationPreferences.Languages[0];

#if !DEBUG
            AppCenter.Start(ConfigurationManager.AppSettings["WindowsAppcenterSecret"], typeof(Analytics), typeof(Crashes));
#endif

            var navService = ConfigureNavigation();
            RegisterServices(navService);

            Xamarin.Forms.Forms.Init(activationArgs as LaunchActivatedEventArgs);
            new Presentation.App();
            BackgroundTaskService.RegisterBackgroundTasks();
            ThemeSelectorService.Initialize(app.RequestedTheme);
            await JumpListService.InitializeAsync();
        }
コード例 #2
0
        private async Task InitializeAsync(object activationArgs)
        {
            ExecutingPlatform.Current = AppPlatform.UWP;
            ConfigurationManager.Initialise(PortableStream.Current);
            ApplicationLanguages.PrimaryLanguageOverride = GlobalizationPreferences.Languages[0];

#if !DEBUG
            AppCenter.Start(ConfigurationManager.AppSettings["WindowsAppcenterSecret"], typeof(Analytics), typeof(Crashes));
#endif

            LoggerService.Initialize();

            NavigationService navService = ConfigureNavigation();
            RegisterServices(navService);

            Forms.Init(activationArgs as LaunchActivatedEventArgs);

            await Singleton <BackgroundTaskService> .Instance.RegisterBackgroundTasksAsync();

            await JumpListService.InitializeAsync();

            ThemeSelectorService.Initialize();
        }