Esempio n. 1
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.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental", "FastRenderers_Experimental");
            Forms.SetFlags("CarouselView_Experimental", "IndicatorView_Experimental");
            global::Xamarin.Forms.Forms.Init();
            Core.Init();
            SfMapsRenderer.Init();
            SfGradientViewRenderer.Init();
            SfBorderRenderer.Init();
            SfButtonRenderer.Init();
            AnimationViewRenderer.Init();

            new SfBusyIndicatorRenderer();

            FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
            Syncfusion.SfSchedule.XForms.iOS.SfScheduleRenderer.Init();
            Syncfusion.XForms.iOS.TabView.SfTabViewRenderer.Init();

            SfListViewRenderer.Init();

            LoadApplication(new App());

            Instabug.StartWithToken("de0e8acfa86980fd8b252abd14d086fc", IBGInvocationEvent.Shake);
            IBGBugReporting.InvocationEvents = IBGInvocationEvent.FloatingButton;


            return(base.FinishedLaunching(app, options));
        }
Esempio n. 2
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            Window.AddFlags(global::Android.Views.WindowManagerFlags.DrawsSystemBarBackgrounds);

            UserDialogs.Init(this);
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(true);
            base.OnCreate(bundle);

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

            AnimationViewRenderer.Init();

            if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
            {
                //Window.DecorView.SystemUiVisibility = 0;
                //var statusBarHeightInfo = typeof(FormsAppCompatActivity).GetField("_statusBarHeight", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
                //statusBarHeightInfo.SetValue(this, 0);
                //Window.SetStatusBarColor(new Android.Graphics.Color(176, 106, 179, 255));
            }

            LoadApplication(new App());

            // IMPORTANT: Initialize XFGloss AFTER calling LoadApplication on the Android platform
            XFGloss.Droid.Library.Init(this, bundle);
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            // DEBUG GORILLA PLAYER EN ANDROID
            // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
            var forceXamlOnlyTypeLoading = new[]
            {
                typeof(UXDivers.Effects.Effects),
                typeof(UXDivers.Effects.Droid.CircleEffect),
                typeof(Xamanimation.AnimationBase),
                typeof(Lottie.Forms.AnimationView)
            };

            // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++

            base.OnCreate(savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            // LOTTIE FORMS Init() PARA Android
            // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
            AnimationViewRenderer.Init();
            // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++

            LoadApplication(new App());
        }
Esempio n. 4
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            RendererInitializer.Init();
            XfxControls.Init();
            //global::Xamarin.Forms.Forms.SetFlags("FastRenderers_Experimental");
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            UserDialogs.Init(this);
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(enableFastRenderer: true);
            ImageCircleRenderer.Init();
            CarouselViewRenderer.Init();
            AnimationViewRenderer.Init();
#pragma warning disable CS0618 // Type or member is obsolete
            Push.SetSenderId("157557116902");
#pragma warning restore CS0618 // Type or member is obsolete
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            HtmlLabelRenderer.Initialize();
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
            {
                Window.ClearFlags(WindowManagerFlags.TranslucentStatus);
                Window.AddFlags(WindowManagerFlags.DrawsSystemBarBackgrounds);
                Window.SetStatusBarColor(Android.Graphics.Color.ParseColor("#088502"));
            }

            //This forces the custom renderers to be used
            //Android.Glide.Forms.Init();

            LoadApplication(new App());
            FirebasePushNotificationManager.ProcessIntent(this, Intent);
        }
Esempio n. 5
0
        public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions)
        {
            Forms.Init();

            CarouselViewRenderer.Init();
            AnimationViewRenderer.Init();
            CachedImageRenderer.Init();

            // TODO dummy to prevent the dll being trashed by the linker.
            // Should be a better solution...
            var foo = new FFImageLoading.Svg.Forms.SvgCachedImage();

            UIApplication.SharedApplication.SetStatusBarHidden(false, false);
            LoadApplication(new BeenPwnedApp());

            UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);

#if !DEBUG
            // Periodically let the app ask for a review
            if (UIDevice.CurrentDevice.CheckSystemVersion(10, 3))
            {
                SKStoreReviewController.RequestReview();
            }
#endif
            return(base.FinishedLaunching(uiApplication, launchOptions));
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            SetTheme(Resource.Style.MainTheme);

            base.OnCreate(savedInstanceState);
            Forms.SetFlags("CarouselView_Experimental");
            Forms.SetFlags("SwipeView_Experimental");



            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            IconEntryRenderer.Init();
            CardsViewRenderer.Preserve();
            AnimationViewRenderer.Init();
            ImageCircleRenderer.Init();
            CachedImageRenderer.Init(true);
            SharpnadoInitializer.Initialize();
            CrossCurrentActivity.Current.Init(this, savedInstanceState);


            LoadApplication(new App(new AndroidInitialize()));
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            ImageCircleRenderer.Init();
            AnimationViewRenderer.Init();
            FormsMaps.Init();
            CachedImageRenderer.Init();
            CarouselViewRenderer.Init();

            //HACK to get the linker to behave
            var ignore = new CircleTransformation();

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

            var formsApp = new App();

            UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);

            UITabBar.Appearance.BarTintColor = ((Color)formsApp.Resources["BackgroundColor"]).ToUIColor();;
            UITabBar.Appearance.TintColor    = ((Color)formsApp.Resources["AccentColor"]).ToUIColor();

            LoadApplication(formsApp);

            return(base.FinishedLaunching(app, options));
        }
Esempio n. 8
0
        protected override void OnCreate(Bundle bundle)
        {
            FormsAppCompatActivity.TabLayoutResource = Resource.Layout.Tabbar;
            FormsAppCompatActivity.ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);



            // This MobileServiceClient has been configured to communicate with the Azure Mobile App and
            // Azure Gateway using the application url. You're all set to start working with your Mobile App!
            Microsoft.WindowsAzure.MobileServices.MobileServiceClient ProjectPandaClient = new Microsoft.WindowsAzure.MobileServices.MobileServiceClient(
                "https://projectpanda.azurewebsites.net");

            //auth code for android
            global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, bundle);



            global::Xamarin.Forms.Forms.Init(this, bundle);
            //Calender view code
            XamForms.Controls.Droid.Calendar.Init();

            //Lottie Animation android code
            AnimationViewRenderer.Init();

            #region Local database for android devices
            string dbName     = "userSettingsdb.sqlite";
            string folderPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal);
            string fullPath   = Path.Combine(folderPath, dbName);
            #endregion


            LoadApplication(new ProjectPanda.App(fullPath));
        }
Esempio n. 9
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();
            DependencyService.Register <ToastNotification>(); // Register your dependency
            ToastNotification.Init();
            // Request Permissions
            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);
            }
            LoadApplication(new App());
            AnimationViewRenderer.Init();
            ImageCircle.Forms.Plugin.iOS.ImageCircleRenderer.Init();
            BadgeView.iOS.CircleViewRenderer.Initialize();
            Messier16.Forms.Controls.iOS.PlatformTabbedPageRenderer.Init();
            return(base.FinishedLaunching(app, options));
        }
Esempio n. 10
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);
            //CrossCurrentActivity.Current.Init(this, bundle);
            CachedImageRenderer.Init(false);
            AnimationViewRenderer.Init();
            FormsMaps.Init(this, bundle);
            CarouselViewRenderer.Init();
            Xamarin.Essentials.Platform.Init(this, bundle);

            // Configure App Center Push
            Push.SetSenderId("597659151602");

            // Initialize App Indexing and Deep Links
            FirebaseApp.InitializeApp(this);
            AndroidAppLinks.Init(this);

            // Configure Authentication
            AuthenticationService.UIParent = new UIParent(this);

            LoadApplication(new App());
        }
        //
        // 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)
        {
            try
            {
                this.ShinyFinishedLaunching(new Startup(), ConfigureServices);

                //Forms Init
                Xamarin.Forms.Forms.SetFlags(new string[] { "CarouselView_Experimental", "IndicatorView_Experimental" });
                global::Xamarin.Forms.Forms.Init();

                //Plugins Init
                global::Xamarin.Forms.FormsMaterial.Init();
                Rg.Plugins.Popup.Popup.Init();
                Xamarin.Forms.Nuke.FormsHandler.Init();
                iOSMaterialFrameRenderer.Init();
                SharpnadoInitializer.Initialize();
                AnimationViewRenderer.Init();

                //Launch FormsApp
                LoadApplication(new App());
            }
            catch (Exception ex)
            {
                Logger.Write(ex);
            }

            return(base.FinishedLaunching(app, options));
        }
Esempio n. 12
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();
     LoadApplication(new App());
     AnimationViewRenderer.Init();
     return(base.FinishedLaunching(app, options));
 }
Esempio n. 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)
        {
            // Required on iOS for Entity Framework Core.
            SQLitePCL.Batteries_V2.Init();

            global::Xamarin.Forms.Forms.Init();

            AnimationViewRenderer.Init();

            CarouselViewRenderer.Init();

            // Enforced by Apple

            var libPath = Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments),
                                       "..", "Library", "data");

            if (!Directory.Exists(libPath))
            {
                Directory.CreateDirectory(libPath);
            }

            var dbPath = Path.Combine(libPath, "database.sqlite");

            LoadApplication(new App(dbPath));

            return(base.FinishedLaunching(app, options));
        }
        public MainPage()
        {
            this.InitializeComponent();

            LoadApplication(new Start.App());
            AnimationViewRenderer.Init();
        }
Esempio n. 15
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            try
            {
                TabLayoutResource = Resource.Layout.Tabbar;
                ToolbarResource   = Resource.Layout.Toolbar;

                base.OnCreate(savedInstanceState);

                //Forms Init
                Xamarin.Forms.Forms.SetFlags(new string[] { "CarouselView_Experimental", "IndicatorView_Experimental" });
                global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

                //Plugins Init
                global::Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState);
                Xamarin.Essentials.Platform.Init(this, savedInstanceState);
                UserDialogs.Init(this);
                Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
                Android.Glide.Forms.Init(this);
                SharpnadoInitializer.Initialize();
                AnimationViewRenderer.Init();

                //Launch FormsApp
                LoadApplication(new Mobile.App());

                this.ShinyOnCreate();
            }
            catch (Exception ex)
            {
            }
        }
Esempio n. 16
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // create a new window instance based on the screen size
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            // If you have defined a root view controller, set it here:
            // Window.RootViewController = myViewController;

            Forms.Init();

            //Initialize all the custom renderers
            new SfRotatorRenderer();
            AnimationViewRenderer.Init();
            ImageCircleRenderer.Init();
            SfListViewRenderer.Init();
            SfRadialMenuRenderer.Init();
            VideoViewRenderer.Init();

            LoadApplication(new App(new IociOSModule()));

            // make the window visible
            //Window.MakeKeyAndVisible();

            var result = base.FinishedLaunching(application, launchOptions);

            application.KeyWindow.TintColor = Helper.ToUIColor("15C44B");

            return(result);
        }
Esempio n. 17
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            Current = this;
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental", "FastRenderers_Experimental");
            Forms.Init(this, savedInstanceState);
            AnimationViewRenderer.Init();
            ImageCircleRenderer.Init();
            //OneSignal.Current.StartInit("c2df8f3d-8733-47b2-87b3-9787310cecc3")
            //.EndInit();
            GetPermissions();
            LoadApplication(new App());
            MessagingService.Current.Subscribe <bool>(MessageKeys.StatusBar, (args, sender) =>
            {
                if (sender)
                {
                    setLightStatusBar(this, Android.Graphics.Color.Transparent);
                }
                else
                {
                    ClearLightStatusBar(this, Android.Graphics.Color.ParseColor("#0CB392"));
                }
            });
        }
Esempio n. 18
0
        /// <summary>
        /// Invoked when the application is launched normally by the end user.  Other entry points
        /// will be used such as when the application is launched to open a specific file.
        /// </summary>
        /// <param name="e">Details about the launch request and process.</param>
        protected override void OnLaunched(LaunchActivatedEventArgs e)
        {
            Frame rootFrame = Window.Current.Content as Frame;

            // Do not repeat app initialization when the Window already has content,
            // just ensure that the window is active
            if (rootFrame == null)
            {
                // Create a Frame to act as the navigation context and navigate to the first page
                rootFrame = new Frame();

                rootFrame.NavigationFailed += OnNavigationFailed;


                Xamarin.Forms.Forms.Init(e);
                AnimationViewRenderer.Init();
                if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
                {
                    //TODO: Load state from previously suspended application
                }

                // Place the frame in the current Window
                Window.Current.Content = rootFrame;
            }

            if (rootFrame.Content == null)
            {
                // When the navigation stack isn't restored navigate to the first page,
                // configuring the new page by passing required information as a navigation
                // parameter
                rootFrame.Navigate(typeof(MainPage), e.Arguments);
            }
            // Ensure the current window is active
            Window.Current.Activate();
        }
        //
        // 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();

            // DEBUG GORILLA PLAYER EN iOS
            // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
            var forceXamlOnlyTypeLoading = new[]
            {
                typeof(UXDivers.Effects.Effects),
                typeof(UXDivers.Effects.iOS.CircleEffect),
                typeof(Xamanimation.AnimationBase),
                typeof(Lottie.Forms.AnimationView)
            };

            // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

            // LOTTIE FORMS Init() PARA iOS
            // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
            AnimationViewRenderer.Init();
            // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Esempio n. 20
0
        public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions)
        {
            //#if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
            //#endif

            ZXing.Net.Mobile.Forms.iOS.Platform.Init();
            Forms.Init();
            AnimationViewRenderer.Init();
            ImageCircleRenderer.Init();
            XFGloss.iOS.Library.Init();

            LoadApplication(new App());

            PullToRefreshLayoutRenderer.Init();

            var w = (int)UIScreen.MainScreen.Bounds.Width;
            var h = (int)UIScreen.MainScreen.Bounds.Height;

            App.Instance.ScreenSize = new Size(w, h);

            UIApplication.SharedApplication.StatusBarStyle = UIStatusBarStyle.LightContent;

            var settings = UIUserNotificationSettings.GetSettingsForTypes(UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, new NSSet());

            UIApplication.SharedApplication.RegisterUserNotificationSettings(settings);
            UIApplication.SharedApplication.RegisterForRemoteNotifications(); 
 UIApplication.SharedApplication.RegisterForRemoteNotifications();

            return(base.FinishedLaunching(uiApplication, launchOptions));
        }
Esempio n. 21
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Popup.Init();

            ImageCircleRenderer.Init();
            Devicehelper.iOSDevice = UIDevice.CurrentDevice;
            AnimationViewRenderer.Init();
            CarouselViewRenderer.Init();
            var manager = BITHockeyManager.SharedHockeyManager;

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

            var container = new SimpleContainer();

            container.Register <IDevice>(t => AppleDevice.CurrentDevice);
            container.Register <IDisplay>(t => t.Resolve <IDevice>().Display);
            container.Register <INetwork>(t => t.Resolve <IDevice>().Network);
            Resolver.SetResolver(container.GetResolver());
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
            UIRefreshControl.Appearance.TintColor = UIColor.Black;
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());
            return(base.FinishedLaunching(app, options));
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            // Bibliotecas
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            XF.Material.Droid.Material.Init(this, savedInstanceState);

            AnimationViewRenderer.Init();

            // Inicializa a atividade atual para ser usável
            // depois pelo CrossCurrentActivity.
            CrossCurrentActivity.Current.Init(this, savedInstanceState);

            LoadApplication(new App());
            Instance = this;

            //! Ativa o scroll da tela quando for digitar.
            Window.SetSoftInputMode(Android.Views.SoftInput.AdjustResize);

            //Xamarin.Forms.Application.Current.On<Xamarin.Forms.PlatformConfiguration.Android>().UseWindowSoftInputModeAdjust(WindowSoftInputModeAdjust.Resize);
        }
Esempio n. 23
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            AuthenticationProviders = new List <MobileServiceAuthenticationProvider>
            {
                MobileServiceAuthenticationProvider.Facebook,
                //MobileServiceAuthenticationProvider.MicrosoftAccount,
                //MobileServiceAuthenticationProvider.Google,
                //MobileServiceAuthenticationProvider.Twitter
            };

            UITabBar.Appearance.SelectedImageTintColor = UIColor.FromRGB(250, 168, 25);

            // Initialize Xamarin.Forms and its Plugins
            global::Xamarin.Forms.Forms.Init();
            CachedImageRenderer.Init();
            var ignore = typeof(CropTransformation);

            AnimationViewRenderer.Init();
            CarouselViewRenderer.Init();

            // Initialize Azure Mobile App Client for the current platform
            CurrentPlatform.Init();

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


            // Disable Visual Studio App Center updates when in Debug Mode
            Distribute.DontCheckForUpdatesInDebug();

            LoadApplication(new App(this));

            return(base.FinishedLaunching(app, options));
        }
Esempio n. 24
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            HtmlLabelRenderer.Initialize();

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

            CachedImageRenderer.Init(false);

            var s = new SfPdfDocumentViewRenderer();

            CheckboxRenderer.Init();

            AnimationViewRenderer.Init();

            BlobCache.ApplicationName = "AXA";

            if (Device.Idiom == TargetIdiom.Phone)
            {
                RequestedOrientation = ScreenOrientation.Portrait;
            }
            else
            {
                RequestedOrientation = ScreenOrientation.Landscape;
            }

            LoadApplication(new App());
        }
 // This is the main entry point of the application.
 static void Main(string[] args)
 {
     // if you want to use a different Application Delegate class from "AppDelegate"
     // you can specify it here.
     UIApplication.Main(args, null, "AppDelegate");
     PullToRefreshLayoutRenderer.Init();
     AnimationViewRenderer.Init();
 }
Esempio n. 26
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.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental", "FastRenderers_Experimental");
     global::Xamarin.Forms.Forms.Init();
     LoadApplication(new App());
     AnimationViewRenderer.Init();
     return(base.FinishedLaunching(app, options));
 }
Esempio n. 27
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            CachedImageRenderer.Init();
            AnimationViewRenderer.Init();
            PlotViewRenderer.Init();

            return(base.FinishedLaunching(app, options));
        }
        public MainPage()
        {
            this.InitializeComponent();

            ZXing.Net.Mobile.Forms.WindowsUniversal.ZXingScannerViewRenderer.Init();
            AnimationViewRenderer.Init();
            LoadApplication(new SerapisPatient.App());
        }
Esempio n. 29
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();
            AnimationViewRenderer.Init();
            LoadApplication(new App(new iOSInitializer()));

            UINavigationBar.Appearance.BarTintColor = UIColor.FromRGB(110, 110, 110);
            return(base.FinishedLaunching(app, options));
        }
Esempio n. 30
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

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

            AnimationViewRenderer.Init();
            LoadApplication(new App());
        }