Пример #1
0
        protected override void OnCreate(Bundle bundle)
        {
            try
            {
                base.OnCreate(bundle);

                Forms.Init(this, bundle);
                TelerikForms.Init();


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

                if (!Resolver.IsSet)
                {
                    SetIoc();
                }

                global::Xamarin.Forms.Forms.Init(this, bundle);
                Xamarin.FormsGoogleMaps.Init(this, bundle);

                OneSignal.Current.StartInit("855e791f-bcc6-4af3-a9e2-7e8aca4fed98")
                .EndInit();
            }
            catch (Exception ex)
            {
                Toast.MakeText(ApplicationContext, "Error" + ex.Message, ToastLength.Long).Show();
            }
        }
Пример #2
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            TelerikForms.Init();
            new Telerik.XamarinForms.ChartRenderer.iOS.PieChartRenderer();
            new Telerik.XamarinForms.ChartRenderer.iOS.CartesianChartRenderer();

            // Code for starting up the Xamarin Test Cloud Agent
#if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
#endif

            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);
            }

            //return true;


            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Пример #3
0
 public MainPage()
 {
     this.InitializeComponent();
     Xamarin.FormsMaps.Init("5A9AFGEvcl6PpV4TY8sG~QvPMPT_IBFiwtOmBuo42dQ~AhWtvUiUv1j4tqrPmIA4ukPOSnzD83adgtBZaWuzQwrcD1WobBrpYp-OC7q6wZ_w");
     LoadApplication(new BitcoinWallet.App(new UwpInitializer()));
     TelerikForms.Init();
 }
Пример #4
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            TelerikForms.Init();
            LoadApplication(new App());
        }
Пример #5
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            Forms.Init(this, bundle);
            TelerikForms.Init();

            this.LoadApplication(new App());
        }
Пример #6
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)
        {
            new Telerik.XamarinForms.DataControlsRenderer.iOS.ListViewRenderer();

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

            return(base.FinishedLaunching(app, options));
        }
Пример #7
0
        public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions)
        {
            Forms.Init();

            this.InitializePlugin <Telerik.XamarinForms.DataControlsRenderer.iOS.ListViewRenderer> ();

            TelerikForms.Init();

            LoadApplication(new App());

            return(base.FinishedLaunching(uiApplication, launchOptions));
        }
Пример #8
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);

            TelerikForms.Init();
            new Telerik.XamarinForms.ChartRenderer.Android.PieChartRenderer();
            new Telerik.XamarinForms.ChartRenderer.Android.CartesianChartRenderer();

            LoadApplication(new App());
        }
Пример #9
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.Init();

            new Telerik.XamarinForms.ChartRenderer.iOS.PieChartRenderer();
            new Telerik.XamarinForms.ChartRenderer.iOS.CartesianChartRenderer();
            new Telerik.XamarinForms.InputRenderer.iOS.CalendarRenderer();
            new Telerik.XamarinForms.DataControlsRenderer.iOS.ListViewRenderer();
            new Telerik.XamarinForms.PrimitivesRenderer.iOS.SideDrawerRenderer();
            new Telerik.XamarinForms.DataVisualization.Gauges.RadRadialGauge();

            TelerikForms.Init();

            this.LoadApplication(new App());
            Xamarin.Calabash.Start();

            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)
        {
            new Telerik.XamarinForms.ChartRenderer.iOS.CartesianChartRenderer();

            Forms.Init();
            TelerikForms.Init();
            new SfChartRenderer();
            new SfGaugeRenderer();
            RoundedBoxViewRenderer.Init();
            FAB.iOS.FloatingActionButtonRenderer.InitControl();

            BITHockeyManager manager = BITHockeyManager.SharedHockeyManager;

            manager.Configure(Configuration.HockeyAppIdIOS);
            manager.CrashManager.CrashManagerStatus = BITCrashManagerStatus.AutoSend;
            manager.StartManager();
            manager.Authenticator.AuthenticateInstallation();

            if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0))
            {
                var settings = UIUserNotificationSettings.GetSettingsForTypes(UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, null);
                UIApplication.SharedApplication.RegisterUserNotificationSettings(settings);
            }

            if (options != null && options.ContainsKey(UIApplication.LaunchOptionsLocalNotificationKey))
            {
                if (options[UIApplication.LaunchOptionsLocalNotificationKey] is UILocalNotification localNotification)
                {
                    UIAlertController okayAlertController = UIAlertController.Create(localNotification.AlertAction, localNotification.AlertBody, UIAlertControllerStyle.Alert);
                    okayAlertController.AddAction(UIAlertAction.Create("OK", UIAlertActionStyle.Default, null));

                    this.Window.RootViewController.PresentViewController(okayAlertController, true, null);

                    UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0;
                }
            }

            this.LoadApplication(new Hubo.Application());

            return(base.FinishedLaunching(app, options));
        }
Пример #11
0
 public MainPage()
 {
     this.InitializeComponent();
     LoadApplication(new SDKBrowser.App());
     TelerikForms.Init();
 }