Beispiel #1
0
        protected override void InitializePlatformServices()
        {
            base.InitializePlatformServices();

            MvxEntry.RegisterSingleton <IDocumentRoot>(MvxEntry.IocConstruct <DocumentRoot>);

            MvxEntry.CallbackWhenRegistered <IMvxMainThreadAsyncDispatcher>(SetupFlurry);
        }
Beispiel #2
0
 /// <inheritdoc />
 public override void LoadPlugins(IMvxPluginManager pluginManager)
 {
     //We have to do this here, since the loading via bootloader won't work for UWP projects
     Mvx.LazyConstructAndRegisterSingleton <IMvxComposeEmailTask, MvxComposeEmailTask>();
     Mvx.LazyConstructAndRegisterSingleton <IMvxWebBrowserTask, MvxWebBrowserTask>();
     Mvx.LazyConstructAndRegisterSingleton <IMvxFileStore, MvxWindowsFileStore>();
     Mvx.LazyConstructAndRegisterSingleton <IMvxNativeVisibility, MvxWinRTVisibility>();
     Mvx.LazyConstructAndRegisterSingleton <IMvxMessenger, MvxMessengerHub>();
 }
Beispiel #3
0
        protected override void InitializeFirstChance()
        {
            base.InitializeFirstChance();

            Mvx.LazyConstructAndRegisterSingleton <IConnectivity, ConnectivityImplementation>();
            Mvx.LazyConstructAndRegisterSingleton <IDialogService, DialogService>();
            Mvx.LazyConstructAndRegisterSingleton <IOneDriveAuthenticator, OneDriveAuthenticator>();
            Mvx.LazyConstructAndRegisterSingleton <IProtectedData, ProtectedData>();
            Mvx.LazyConstructAndRegisterSingleton <ITileManager, TileManager>();
            Mvx.LazyConstructAndRegisterSingleton <IAppInformation, WindowsAppInformation>();
            Mvx.LazyConstructAndRegisterSingleton <IStoreOperations, MarketplaceOperations>();
            Mvx.LazyConstructAndRegisterSingleton <ISettings, Settings>();
            Mvx.LazyConstructAndRegisterSingleton <IBackgroundTaskManager, BackgroundTaskManager>();

            DependencyRegistrator.RegisterDependencies();
        }
Beispiel #4
0
        protected override void OnCreate(Bundle bundle)
        {
            UserDialogs.Init(() => MvxEntry.Resolve <IMvxAndroidCurrentTopActivity>().Activity);

            base.OnCreate(bundle);
        }