示例#1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            DependencyService.Register <ToastNotification>();
            Xamarin.FormsGoogleMaps.Init("AIzaSyD3YCjiRwumZvVbAKIpoc1Pu2ZSdFJRtPw");
            ToastNotification.Init();
            TKCustomMapRenderer.InitMapRenderer();
            ImageCircleRenderer.Init();
            FAB.iOS.FloatingActionButtonRenderer.InitControl();
            //ProgressRingRenderer.Init();
            LoadApplication(new App());

            if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0))
            {
                // Request Permissions
                UNUserNotificationCenter.Current.RequestAuthorization(UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound, (granted, error) =>
                {
                    // Do something if needed
                });
            }
            else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0))
            {
                var notificationSettings = UIUserNotificationSettings.GetSettingsForTypes(
                    UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, null
                    );

                app.RegisterUserNotificationSettings(notificationSettings);
            }

            //var x = typeof(Xamarin.Forms.Themes.DarkThemeResources);
            //x = typeof(Xamarin.Forms.Themes.LightThemeResources);
            //x = typeof(Xamarin.Forms.Themes.iOS.UnderlineEffect);
            return(base.FinishedLaunching(app, options));
        }
示例#2
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            TKCustomMapRenderer.InitMapRenderer();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.Init();

            var renderer = new TKCustomMapRenderer();

            LoadApplication(new App());
            return(base.FinishedLaunching(app, options));
        }
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            Xamarin.FormsMaps.Init();
            TKCustomMapRenderer.InitMapRenderer();
            Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
示例#5
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.Init();
            var dummy  = new TKCustomMapRenderer();
            var dummy2 = new NativePlacesApi();

            FormsMaps.Init();
            LoadApplication(new App());
            return(base.FinishedLaunching(app, options));
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            UINavigationBar.Appearance.Translucent = true;
            UINavigationBar.Appearance.BarStyle    = UIBarStyle.Default;
            global::Xamarin.Forms.Forms.Init();
            global::Xamarin.FormsMaps.Init();
            TKCustomMapRenderer.InitMapRenderer();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
示例#7
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            ImageCircleRenderer.Init();
            LoadApplication(new App());
            TKCustomMapRenderer.InitMapRenderer();

            Rg.Plugins.Popup.Popup.Init();
            OneSignal.Current.StartInit("1126a3d0-1d80-42ee-94db-d0449ac0a62c").EndInit();
            return(base.FinishedLaunching(app, options));
        }
示例#8
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            var renderer = new TKCustomMapRenderer();

            Rg.Plugins.Popup.Popup.Init();
            FirebasePushNotificationManager.Initialize(options, true);

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
示例#9
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            x.Forms.Init();
            FormsMaps.Init();
            TKCustomMapRenderer.InitMapRenderer();
            NativePlacesApi.Init();
            LoadApplication(new App(new iOSInitializer()));



            return(base.FinishedLaunching(app, options));
        }
示例#10
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            SQLitePCL.Batteries.Init();
            Rg.Plugins.Popup.Popup.Init();
            App.DbPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "RentalDb.db");
            var dummy = new TKCustomMapRenderer();

            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
示例#11
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeModule());

            FormsPlugin.Iconize.iOS.IconControls.Init();
            Xamarin.FormsMaps.Init();
            TKCustomMapRenderer.InitMapRenderer();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
示例#12
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            Xamarin.FormsMaps.Init();
            TKCustomMapRenderer.InitMapRenderer();
            LoadApplication(new App());

            FFImageLoading.Forms.Touch.CachedImageRenderer.Init();
            var dummy  = new FFImageLoading.Forms.Touch.CachedImageRenderer();
            var ignore = new FFImageLoading.Transformations.CircleTransformation();

            return(base.FinishedLaunching(app, options));
        }
示例#13
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            global::Xamarin.FormsMaps.Init();
            TKCustomMapRenderer.InitMapRenderer();
            global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init();
            Rg.Plugins.Popup.Popup.Init();
            LoadApplication(new App());

            var googleServiceDictionary = NSDictionary.FromFile("GoogleService-Info.plist");

            SignIn.SharedInstance.ClientID = googleServiceDictionary["CLIENT_ID"].ToString();

            return(base.FinishedLaunching(app, options));
        }
示例#14
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            global::Xamarin.Forms.Forms.Init();
            Xamarin.FormsMaps.Init();
            TKCustomMapRenderer.InitMapRenderer();
            NativePlacesApi.Init();
            CachedImageRenderer.Init();             // Initializing FFImageLoading
            AnimationViewRenderer.Init();           // Initializing Lottie
            PullToRefreshLayoutRenderer.Init();
            XFGloss.iOS.Library.Init();
            CarouselViewRenderer.Init();
            // Presenters Initialization
            global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init();

            GrialKit.Init(new ThemeColors(), "Bullytect.iOS.GrialLicense");

            FormsHelper.ForceLoadingAssemblyContainingType(typeof(UXDivers.Effects.Effects));
            FormsHelper.ForceLoadingAssemblyContainingType <UXDivers.Effects.iOS.CircleEffect>();

            var setup = new Setup(this, Window);

            setup.Initialize();

            var startup = Mvx.Resolve <IMvxAppStart>();

            startup.Start();

            LoadApplication(setup.FormsApplication);

            Window.MakeKeyAndVisible();


            FirebasePushNotificationManager.Initialize(options, true);
            // Presentation Options
            FirebasePushNotificationManager.CurrentNotificationPresentationOption = UNNotificationPresentationOptions.Alert | UNNotificationPresentationOptions.Badge;

            var manager = BITHockeyManager.SharedHockeyManager;

            manager.Configure("1b44222db10b498f82e43ddc488bf1d5");
            manager.StartManager();
            manager.Authenticator.AuthenticateInstallation();


            return(true);
        }
示例#15
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Rg.Plugins.Popup.Popup.Init();
            global::Xamarin.Forms.Forms.Init();
            Xamarin.FormsMaps.Init();
            SfListViewRenderer.Init();

            var render = new SfRatingRenderer();

            //  EnhancedEntryRenderer.Init();
            var renderer = new TKCustomMapRenderer();

            if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0))
            {
                UNUserNotificationCenter.Current.RequestAuthorization(UNAuthorizationOptions.Alert | UNAuthorizationOptions.Sound | UNAuthorizationOptions.Sound,
                                                                      (granted, error) =>
                {
                    if (granted)
                    {
                        InvokeOnMainThread(UIApplication.SharedApplication.RegisterForRemoteNotifications);
                    }
                });
            }
            else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0))
            {
                var pushSettings = UIUserNotificationSettings.GetSettingsForTypes(
                    UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound,
                    new NSSet());

                UIApplication.SharedApplication.RegisterUserNotificationSettings(pushSettings);
                UIApplication.SharedApplication.RegisterForRemoteNotifications();
            }
            else
            {
                UIRemoteNotificationType notificationTypes = UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge | UIRemoteNotificationType.Sound;
                UIApplication.SharedApplication.RegisterForRemoteNotificationTypes(notificationTypes);
            }

            LoadApplication(new App());
            FacebookClientManager.Initialize(app, options);

            return(base.FinishedLaunching(app, options));
        }
示例#16
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            FormsMaps.Init();
            new Syncfusion.SfAutoComplete.XForms.iOS.SfAutoCompleteRenderer();
            var renderer = new TKCustomMapRenderer();
            var temp     = new ResourceHelper();
            var db       = new RealmDataBase();

            Syncfusion.XForms.iOS.TabView.SfTabViewRenderer.Init();
            Syncfusion.ListView.XForms.iOS.SfListViewRenderer.Init();
            SfRadialMenuRenderer.Init();
            if (db.FirstRun())
            {
                LoadApplication(new App(temp.Process(), temp.GetParsedVenuesWithSubjects()));
            }
            else
            {
                LoadApplication(new App());
            }
            return(base.FinishedLaunching(app, options));
        }
示例#17
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            UINavigationBar.Appearance.BarTintColor = UIColor.FromRGB(145, 37, 0); //bar background

            UINavigationBar.Appearance.TintColor = UIColor.White;                  //Tint color of button items
            UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes()
            {
                Font      = UIFont.FromName("HelveticaNeue-Light", (nfloat)20f),
                TextColor = UIColor.White
            });

            global::Xamarin.Forms.Forms.Init();
            global::Xamarin.FormsMaps.Init();
            ImageCircleRenderer.Init();
            TKCustomMapRenderer.InitMapRenderer();
            NativePlacesApi.Init();
            App a = new App();

            a.SetMapKey("AIzaSyBj7y_h1cMFZZTr1YHP3szNj3CYoago3Hw");
            LoadApplication(a);

            return(base.FinishedLaunching(app, options));
        }
示例#18
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            //global::Xamarin.Forms.Forms.Init();
            //Xamarin.FormsMaps.Init();

            Forms.Init();
            FormsMaps.Init();
            TKCustomMapRenderer.InitMapRenderer();
            NativePlacesApi.Init();

            Xamarin.Auth.Presenters.OAuthLoginPresenter.PlatformLogin = (authenticator) =>
            {
                var oAuthLogin = new OAuthLoginPresenter();
                oAuthLogin.Login(authenticator);
            };

            LoadApplication(App.getInstance());
            return(base.FinishedLaunching(app, options));

            //LoadApplication(new App());

            //return base.FinishedLaunching(app, options);
        }
示例#19
0
        protected override async void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            base.OnCreate(bundle);
            var renderer = new TKCustomMapRenderer(this);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            LocalNotificationsImplementation.NotificationIconId = Resource.Drawable.book;
            UserDialogs.Init(this);
            TKGoogleMaps.Init(this, bundle);
            var db = new RealmDataBase();

            if (db.FirstRun())
            {
                var temp = new ResourceHelper(this.ApplicationContext, "RhodesMap.geojson", "Venues.txt");
                LoadApplication(new App(temp.ReadLocalFile(), temp.GetParsedVenuesWithSubjects()));
            }
            else
            {
                LoadApplication(new App());
            }
            await GetLocationPermissionAsync();
        }
示例#20
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            var resolverContainer = new XLabs.Ioc.SimpleContainer();

            resolverContainer.Register(t => AppleDevice.CurrentDevice)
            .Register(t => t.Resolve <IDevice>().Display)
            .Register <IMediaPicker, MediaPicker>()
            .Register <XLabs.Ioc.IDependencyContainer>(t => resolverContainer)
            .Register <IJsonSerializer, IJsonSerializer>();

            XLabs.Ioc.Resolver.SetResolver(resolverContainer.GetResolver());

            Forms.Init();
            Xamarin.FormsMaps.Init();//карты
            var a = CLAuthorizationStatus.Authorized;           DependencyService.Register <ToastNotificatorImplementation>();

            ToastNotificatorImplementation.Init();

            var dummy  = new TKCustomMapRenderer();
            var dummy2 = new NativePlacesApi();

            LoadApplication(new App());
            return(base.FinishedLaunching(app, options));
        }