Ejemplo 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.Init();
            global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init();

            //FFImageLoading 초기화
            CachedImageRenderer.Init();
            AnimationViewRenderer.Init();

            LoadApplication(new App(new iOSInitializer()));

            //UINavigationBar.Appearance.SetBackgroundImage(new UIImage(), UIBarMetrics.Default);
            //UINavigationBar.Appearance.ShadowImage = new UIImage();
            //UINavigationBar.Appearance.BackgroundColor = UIColor.Clear;
            //UINavigationBar.Appearance.TintColor = UIColor.White;
            //UINavigationBar.Appearance.BarTintColor = UIColor.Clear;
            //UINavigationBar.Appearance.Translucent = true;

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

            ToolbarResource = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            Rg.Plugins.Popup.Popup.Init(this, bundle);

            Vapolia.WheelPickerForms.Droid.WheelPickerRenderer.InitializeForms();

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

            CachedImageRenderer.Init();

            UserDialogs.Init(() => (Activity)this);

            LoadApplication(new App());
        }
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            Xamarin.Forms.Forms.Init();
            CachedImageRenderer.Init();

            UITableViewCell.Appearance.BackgroundColor = UIColor.Clear;

            var att = new UITextAttributes
            {
                Font = UIFont.FromName("FiraSans-Regular", 16)
            };

            UINavigationBar.Appearance.SetTitleTextAttributes(att);
            UINavigationBar.Appearance.Translucent     = false;
            UINavigationBar.Appearance.BackgroundColor = Styles.BlackTextColor;
            UINavigationBar.Appearance.BarStyle        = UIBarStyle.Black;
            UINavigationBar.Appearance.TintColor       = UIColor.White;

            return(true);
        }
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

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

            var pixels  = Resources.DisplayMetrics.WidthPixels;
            var density = Resources.DisplayMetrics.Density;

            App.ScreenWidth  = (double)(Resources.DisplayMetrics.WidthPixels - 0.5f) / density;
            App.ScreenHeight = (double)(Resources.DisplayMetrics.HeightPixels - 0.5f) / density;

            CrashManager.Register(this, "c1be25c3171644ffb6550bf4cd55b15e");

            LoadApplication(new App());
        }
Ejemplo n.º 5
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            CachedImageRenderer.Init();             // Initializing FFImageLoading
            AnimationViewRenderer.Init();           // Initializing Lottie

            UXDivers.Artina.Shared.GrialKit.Init(new ThemeColors(), "GrialRTLService.iOS.GrialLicense");

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

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

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 6
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            //XF.Material.Droid.Material.Init(this, savedInstanceState);

            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);

            ImageCircleRenderer.Init();
            CachedImageRenderer.Init(true);

            XamEffects.Droid.Effects.Init();
            XF.Material.Forms.Material.Init(new App());
            LoadApplication(new App());
        }
Ejemplo n.º 7
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            CachedImageRenderer.Init(true);
            ImageService.Instance.Initialize(
                new Configuration {
                HttpClient = new HttpClient(
                    new AndroidClientHandler()
                {
                    AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate,
                })
            });

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

            CachedImageRenderer.InitImageViewHandler();
            LoadApplication(new App());
        }
        protected override async void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

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

            await CrossMedia.Current.Initialize();

            CachedImageRenderer.Init(enableFastRenderer: true);
            //CachedImageRenderer.InitImageViewHandler();

            UserDialogs.Init(this);
            CarouselView.FormsPlugin.Android.CarouselViewRenderer.Init();


            LoadApplication(new App());
        }
Ejemplo n.º 9
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            BitExceptionHandler.Current = new ToDoLineExceptionHandler();

            UseDefaultConfiguration();

            SfTextInputLayoutRenderer.Init();

            SfBadgeViewRenderer.Init();

            SfButtonRenderer.Init();

            CachedImageRenderer.Init();

            Forms.Init();

            LoadApplication(new App(new ToDoLinePlatformInitializer()));

            return(base.FinishedLaunching(app, options));
        }
Ejemplo 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);
            global::Xamarin.FormsMaps.Init(this, bundle);
            Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init();
            CachedImageRenderer.Init(true);

            if (!string.IsNullOrEmpty(appCenterKey))
            {
                AppCenter.Start(appCenterKey,
                                typeof(Analytics), typeof(Crashes));
            }

            LoadApplication(new App());
        }
Ejemplo n.º 11
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            var density = Resources.DisplayMetrics.Density;

            Constants.nativeScale  = density;
            Constants.screenWidth  = Resources.DisplayMetrics.WidthPixels / density;
            Constants.screenHeight = Resources.DisplayMetrics.HeightPixels / density;

            global::Xamarin.Forms.Forms.Init(this, bundle);
            Xamarin.FormsGoogleMaps.Init(this, bundle);
            CachedImageRenderer.Init(false);
            //Plugin.CurrentActivity.CrossCurrentActivity.Current.Activity = this;
            Plugin.CurrentActivity.CrossCurrentActivity.Current.Init(this, bundle);
            LoadApplication(new App());
        }
Ejemplo n.º 12
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            UserDialogs.Init(this);
            ToastConfig.DefaultDuration         = TimeSpan.FromSeconds(5.0);
            ToastConfig.DefaultPosition         = ToastPosition.Bottom;
            ToastConfig.DefaultBackgroundColor  = Xamarin.Forms.Color.DarkRed; //.FromHex("#012E8B"); //System.Drawing.Design( "#012E8B");
            ToastConfig.DefaultMessageTextColor = Xamarin.Forms.Color.White;
            ToastConfig.DefaultActionTextColor  = Xamarin.Forms.Color.DarkSlateGray;

            ZXing.Net.Mobile.Forms.Android.Platform.Init();

            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            CachedImageRenderer.Init(true);
            LoadApplication(new App());
        }
Ejemplo n.º 13
0
        protected override void OnCreate(Bundle bundle)
        {
            Window.RequestFeature(WindowFeatures.NoTitle);
            Window.AddFlags(WindowManagerFlags.Fullscreen);

            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            //Forms.SetFlags("FastRenderers_Experimental");

            float density      = Resources.DisplayMetrics.Density;
            float widthScreen  = (float)Resources.DisplayMetrics.WidthPixels / density;
            float heightScreen = (float)Resources.DisplayMetrics.HeightPixels / density;

            App.size_util = new Commons.SizeUtil(widthScreen, heightScreen, density, true);
            base.OnCreate(bundle);
            //global::Xamarin.Forms.Forms.SetFlags("FastRenderers_Experimental");
            global::Xamarin.Forms.Forms.Init(this, bundle);
            CachedImageRenderer.Init(true);
            LoadApplication(new App());
        }
Ejemplo n.º 14
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);
            CachedImageRenderer.Init(false);
            AnimationViewRenderer.Init();
            CarouselViewRenderer.Init();
            UserDialogs.Init(() => (Activity)global::Xamarin.Forms.Forms.Context);
            Microsoft.AppCenter.Push.Push.SetSenderId("714883573816");

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

            LoadApplication(new App(this));
        }
Ejemplo n.º 15
0
        protected override void OnCreate(Bundle bundle)
        {
#if !DEBUG
            MobileCenter.Start(Settings.MOBILECENTER_ANDROID_APP_ID, typeof(Analytics), typeof(Crashes));
            Pyze.Initialize(this);
#endif

            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            Forms.Init(this, bundle);

            CachedImageRenderer.Init();

            CarouselViewRenderer.Init();

            LoadApplication(new App());
        }
Ejemplo n.º 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)
        {
#if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
#endif
            global::Xamarin.Forms.Forms.Init();
            ZXing.Net.Mobile.Forms.iOS.Platform.Init();

            SentrySdk.Init("https://[email protected]/5320492");

            //Image Plugin Support
            CachedImageRenderer.Init();
            SvgImageRenderer.Init();

            var host = App.BuildHost(typeof(KernelModule).Assembly).Build();
            _application = host.Services.GetRequiredService <App>();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 17
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            Instance          = this;
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException;
            TaskScheduler.UnobservedTaskException      += TaskSchedulerOnUnobservedTaskException;

            base.OnCreate(savedInstanceState);
            global::Xamarin.Forms.Forms.SetFlags("SwipeView_Experimental", "RadioButton_Experimental", "Brush_Experimental", "Shapes_Experimental");
            Rg.Plugins.Popup.Popup.Init(this);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            CachedImageRenderer.Init(true);
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            global::Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState);
            Xamarin.FormsGoogleMaps.Init(this, savedInstanceState);
            UserDialogs.Init(() => this);
            LoadApplication(new App());
        }
Ejemplo n.º 18
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            CachedImageRenderer.Init();

            var config = new FFImageLoading.Config.Configuration()
            {
                VerboseLogging                 = false,
                VerbosePerformanceLogging      = false,
                VerboseMemoryCacheLogging      = false,
                VerboseLoadingCancelledLogging = false,
                Logger = new CustomLogger(),
            };

            ImageService.Instance.Initialize(config);

            LoadApplication(new App());

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

            base.OnCreate(bundle);

            //Init FFImageLoading
            CachedImageRenderer.Init();

            //Init Image Circle Plugin
            ImageCircle.Forms.Plugin.Droid.ImageCircleRenderer.Init();

            //UserDialogs Init
            Acr.UserDialogs.UserDialogs.Init(() => (Activity)Forms.Context);

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

            LoadApplication(new App());
        }
Ejemplo n.º 20
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            FormsWebViewRenderer.Initialize();
            Toolkit.Init();
            CachedImageRenderer.Init(true);

            Shares.Init(this);

            XGPushConfig.EnableDebug(this, !BuildConfig.Debug);
            XGPushManager.RegisterPush(this, this);

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

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

            base.OnCreate(savedInstanceState);

            Xamarin.Forms.Forms.SetFlags(
                new string[] {
                "SwipeView_Experimental", "RadioButton_Experimental"
            }
                );

            CachedImageRenderer.InitImageViewHandler();
            CachedImageRenderer.Init(true);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            global::Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
Ejemplo n.º 22
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);


            AppCenter.Start("dc8d46cc-ae65-4141-b3b1-52941bf28625", typeof(Analytics), typeof(Crashes), typeof(Push));
            //AppCenter.Start("dc8d46cc-ae65-4141-b3b1-52941bf28625", typeof(Push));
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            Forms.SetFlags("CollectionView_Experimental");
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            //Xamarin.FormsMaps.Init(this, savedInstanceState);
            CachedImageRenderer.Init(true);
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            ImageCircleRenderer.Init();
            LoadApplication(new App());
        }
Ejemplo n.º 23
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            CachedImageRenderer.Init();

            var setup = new Setup(this, Window);

            setup.Initialize();

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

            startup.Start();

            LoadApplication(setup.FormsApplication);

            Window.MakeKeyAndVisible();

            return(true);
        }
Ejemplo n.º 24
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.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init();
            global::Xamarin.Forms.Forms.Init();
            //UITabBar.Appearance.SelectedImageTintColor = UIColor.Magenta;


            CachedImageRenderer.Init();

            //google analytics
            GoogleAnalytics.Current.Config.TrackingId = "UA-XXXXXXXX-2";
            GoogleAnalytics.Current.Config.AppId      = "GASample";
            GoogleAnalytics.Current.Config.AppName    = "Google Analytics Sample";
            GoogleAnalytics.Current.Config.AppVersion = "1.0.0.0";
            GoogleAnalytics.Current.InitTracker();

            LoadApplication(new App());
            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 25
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("CollectionView_Experimental");
            global::Xamarin.Forms.Forms.Init();
            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");

            CachedImageRenderer.Init();
            LoadApplication(new App(dbPath));

            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 26
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

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

            //FFImageLoading 초기화
            CachedImageRenderer.Init();

            // Xamarin.Forms linker issue
            //var ignore = new CachedImage();
            var ignore = new CircleTransformation();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 27
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
#if !DEBUG
            MobileCenter.Start(Settings.MOBILECENTER_IOS_APP_ID, typeof(Analytics), typeof(Crashes));
#endif

#if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
#endif

            Forms.Init();

            CarouselViewRenderer.Init();

            CachedImageRenderer.Init();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 28
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();
            CachedImageRenderer.Init();
            InitXamanimation();

            RegisterPlatformDependencies();
            LoadApplication(new App());

            base.FinishedLaunching(app, options);

            UINavigationBar.Appearance.SetBackgroundImage(new UIImage(), UIBarMetrics.Default);
            UINavigationBar.Appearance.ShadowImage     = new UIImage();
            UINavigationBar.Appearance.BackgroundColor = UIColor.Clear;
            UINavigationBar.Appearance.TintColor       = UIColor.White;
            UINavigationBar.Appearance.BarTintColor    = UIColor.Clear;
            UINavigationBar.Appearance.Translucent     = true;

            return(true);
        }
Ejemplo n.º 29
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            global::Xamarin.Forms.Forms.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental", "FastRenderers_Experimental");

            // SECTOR1 FFImageLoading
            // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
            var config = new FFImageLoading.Config.Configuration()
            {
                VerboseLogging                 = false,
                VerbosePerformanceLogging      = false,
                VerboseMemoryCacheLogging      = false,
                VerboseLoadingCancelledLogging = false,
                Logger = new CustomLogger(),
            };

            ImageService.Instance.Initialize(config);

            // Inits of Xamarin.Forms and Essentials
            // ++++++++++++++++++++++++++++++++++++++++++++++++++++
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            // ++++++++++++++++++++++++++++++++++++++++++++++++++++

            // ADD Init() Lottie in Android
            // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
            AnimationViewRenderer.Init();
            // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++

            CachedImageRenderer.Init(true);
            CachedImageRenderer.InitImageViewHandler();
            var ignore = typeof(SvgCachedImage);

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

            LoadApplication(new App());
        }
Ejemplo n.º 30
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)
        {
            if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0))
            {
                // Ask the user for permission to get notifications on iOS 10.0+
                UNUserNotificationCenter.Current.RequestAuthorization(
                    UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound,
                    (approved, error) => { });
            }
            else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0))
            {
                // Ask the user for permission to get notifications on iOS 8.0+
                var settings = UIUserNotificationSettings.GetSettingsForTypes(
                    UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound,
                    new NSSet());

                UIApplication.SharedApplication.RegisterUserNotificationSettings(settings);
            }

            //Código para a barra de status do ios aparecer na view
            UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false);
            UIApplication.SharedApplication.SetStatusBarHidden(false, false);

            /*
             * é necessario adicionar no info.plist
             *
             * <key>UIViewControllerBasedStatusBarAppearance</key>
             *   <false/>
             *   <key>UIStatusBarHidden</key>
             *   <true/>
             */


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

            CachedImageRenderer.Init();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }