Ejemplo n.º 1
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));
        }
Ejemplo n.º 2
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            var width   = Resources.DisplayMetrics.WidthPixels;
            var height  = Resources.DisplayMetrics.HeightPixels;
            var density = Resources.DisplayMetrics.Density;

            App.ScreenWidth  = (width - 0.5f) / density;
            App.ScreenHeight = (height - 0.5f) / density;

            base.OnCreate(bundle);

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

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

            FormsMaps.Init(this, bundle);
            CachedImageRenderer.Init(true);
            PullToRefreshLayoutRenderer.Init();

            LoadApplication(new App());
            FirebasePushNotificationManager.ProcessIntent(Intent);
        }
Ejemplo n.º 3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            PullToRefreshLayoutRenderer.Init();
            Plugin.CurrentActivity.CrossCurrentActivity.Current.Init(this, savedInstanceState);
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            base.OnCreate(savedInstanceState);
            MessagingCenter.Subscribe <RequestMessage <ServiceParameter> >(this, Constants.SERVICE_START, message =>
            {
                var intent = new Intent(this, typeof(IoTCentralService));
                intent.PutExtra(Constants.BLE_DEVICE, message.Data.BLEDeviceId);
                intent.PutExtra(Constants.BLE_MAPPING, JsonConvert.SerializeObject(message.Data.TelemetryMap));
                intent.PutExtra(Constants.DEVICE_ID, message.Data.DeviceCredentials.DeviceId);
                intent.PutExtra(Constants.SCOPE_ID, message.Data.DeviceCredentials.IdScope);
                intent.PutExtra(Constants.SYM_KEY, message.Data.DeviceCredentials.PrimaryKey);
                StartService(intent);
            });

            MessagingCenter.Subscribe <RequestMessage>(this, Constants.SERVICE_STOP, message =>
            {
                var intent = new Intent(this, typeof(IoTCentralService));
                StopService(intent);
            });
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
            //App.ParentWindow = new PlatformParameters(this);
            //App.ParentWindow = this;

            // subscribing to service messages
        }
Ejemplo n.º 4
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();
            PullToRefreshLayoutRenderer.Init();
            UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes
            {
                TextColor = UIColor.Black,
                Font      = UIFont.FromName("FrederickatheGreat-Regular", 24)
            });
            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) => { });
                UNUserNotificationCenter.Current.Delegate = new UserNotificationCenterDelegate();
            }
            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);
            }
            UINavigationBar.Appearance.TintColor = UIColor.FromRGB(248, 213, 36);
            LoadApplication(new App());
            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 5
0
        static void InitializeDependencies()
        {
            FormsMaps.Init();
            Toolkit.Init();

            AppIndexing.SharedInstance.RegisterApp(PublicationSettings.iTunesAppId);

            Plugin.Share.ShareImplementation.ExcludedUIActivityTypes = new List <NSString>
            {
                UIActivityType
                .PostToFacebook,
                UIActivityType
                .AssignToContact,
                UIActivityType
                .OpenInIBooks,
                UIActivityType
                .PostToVimeo,
                UIActivityType
                .PostToFlickr,
                UIActivityType
                .SaveToCameraRoll
            };
            ImageCircle.Forms.Plugin.iOS.ImageCircleRenderer.Init();
            NonScrollableListViewRenderer.Initialize();
            SelectedTabPageRenderer.Initialize();
            TextViewValue1Renderer.Init();
            PullToRefreshLayoutRenderer.Init();
        }
        private void Initialize()
        {
            try
            {
                PlatformService.Initialize(
                    UIScreen.MainScreen.Scale,
                    (int)UIScreen.MainScreen.Bounds.Width,
                    (int)UIScreen.MainScreen.Bounds.Height);

                new CoreEntryPoint().RegisterDependencies();
                ImageCircleRenderer.Init();
                PullToRefreshLayoutRenderer.Init();
                SharpnadoInitializer.Initialize(enableInternalLogger: true);
                Xamarin.Forms.Nuke.FormsHandler.Init(debug: true);

                UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes
                {
                    TextColor = UIColor.White,
                    Font      = UIFont.FromName("OpenSans-SemiBold", 17),
                });
            }
            catch (Exception exception)
            {
                Console.WriteLine($"Exception while initializing app: {exception.Message}");
                throw;
            }
        }
Ejemplo n.º 7
0
        static void InitializeDependencies()
        {
            FormsMaps.Init();
            Toolkit.Init();

            AppIndexing.SharedInstance.RegisterApp(PublicationSettings.iTunesAppId);

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

            //Random Inits for Linking out.
            Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init();
            SQLitePCL.CurrentPlatform.Init();
            Plugin.Share.ShareImplementation.ExcludedUIActivityTypes = new List <NSString>
            {
                UIActivityType.PostToFacebook,
                UIActivityType.AssignToContact,
                UIActivityType.OpenInIBooks,
                UIActivityType.PostToVimeo,
                UIActivityType.PostToFlickr,
                UIActivityType.SaveToCameraRoll
            };
            ImageCircle.Forms.Plugin.iOS.ImageCircleRenderer.Init();
            ZXing.Net.Mobile.Forms.iOS.Platform.Init();
            NonScrollableListViewRenderer.Initialize();
            SelectedTabPageRenderer.Initialize();
            TextViewValue1Renderer.Init();
            PullToRefreshLayoutRenderer.Init();
        }
Ejemplo n.º 8
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            var tint = UIColor.FromRGB(118, 53, 235);

            UINavigationBar.Appearance.BarTintColor = UIColor.FromRGB(250, 250, 250); //bar background
            UINavigationBar.Appearance.TintColor    = tint;                           //Tint color of button items
            UIBarButtonItem.Appearance.TintColor    = tint;                           //Tint color of button items
            UITabBar.Appearance.TintColor           = tint;
            UISwitch.Appearance.OnTintColor         = tint;
            UIAlertView.Appearance.TintColor        = tint;
            UIView.AppearanceWhenContainedIn(typeof(UIAlertController)).TintColor        = tint;
            UIView.AppearanceWhenContainedIn(typeof(UIActivityViewController)).TintColor = tint;
            UIView.AppearanceWhenContainedIn(typeof(SLComposeViewController)).TintColor  = tint;

            //#if !ENABLE_TEST_CLOUD

            if (!string.IsNullOrWhiteSpace(ApiKeys.MobileCenterId) && ApiKeys.MobileCenterId != nameof(ApiKeys.MobileCenterId))
            {
                MobileCenter.Start(ApiKeys.MobileCenterId, typeof(Analytics), typeof(Crashes));
            }

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

            // Code for starting up the Xamarin Test Cloud Agent
#if ENABLE_TEST_CLOUD
            Xamarin.Calabash.Start();
#endif
            SelectedTabPageRenderer.Initialize();
            PullToRefreshLayoutRenderer.Init();
            ImageCircle.Forms.Plugin.iOS.ImageCircleRenderer.Init();
            new FreshEssentials.iOS.AdvancedFrameRendereriOS();
            LoadApplication(new App());
            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 9
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            global::Xamarin.Forms.Forms.Init(this, bundle);

            App.Init(new DbSQLite(new SQLite_Android().GetConnection()));

            ImageCircleRenderer.Init();

            DependencyService.Register <ToastNotificatorImplementation>(); // Register your dependency
            ToastNotificatorImplementation.Init(this);                     //TOAST NOTIFICATION
            PullToRefreshLayoutRenderer.Init();


            //Insights.DisableCollection = true;
            //Insights.DisableCollection = Settings.StatisticData;
            //Insights.Initialize("37a1497d790f720508e527850ad82785c117c774", Xamarin.Forms.Forms.Context);

            FormsAppCompatActivity.ToolbarResource   = Resource.Layout.toolbar;
            FormsAppCompatActivity.TabLayoutResource = Resource.Layout.tabs;


            //Set up Mobile Center https://mobile.azure.com/users/lorenzogiudici5/apps/unibgorari
            MobileCenter.Configure("99e6b366-7e20-46e7-97e9-43f3ec720529");
            LoadApplication(new App()); // method is new in 1.3


//			if ((int)Android.OS.Build.VERSION.SdkInt >= 21)
//			{
//				ActionBar.SetIcon ( new ColorDrawable (Resources.GetColor (Android.Resource.Color.Transparent)));
//			}
        }
Ejemplo n.º 10
0
        public static async Task InitializeApp()
        {
            await EntryPoint.RegisterDependenciesAsync().ConfigureAwait(false);

            ImageCircleRenderer.Init();
            PullToRefreshLayoutRenderer.Init();
        }
Ejemplo n.º 11
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();
     PullToRefreshLayoutRenderer.Init();
     Camera();
     // Color of the selected tab icon:
     UITabBar.Appearance.SelectedImageTintColor = UIColor.FromRGB(255, 255, 255);
     // Color of the selected tab text color:
     UITabBarItem.Appearance.SetTitleTextAttributes(
         new UITextAttributes()
     {
         TextColor = UIColor.FromRGB(255, 255, 255)
     }, UIControlState.Selected);
     // Color of the unselected tab icon & text:
     UITabBarItem.Appearance.SetTitleTextAttributes(
         new UITextAttributes()
     {
         TextColor = UIColor.FromRGB(255, 255, 255)
     }, UIControlState.Normal);
     App.ScreenHeight = (int)UIScreen.MainScreen.Bounds.Height;
     App.ScreenWidth  = (int)UIScreen.MainScreen.Bounds.Width;
     LoadApplication(new App());
     return(base.FinishedLaunching(app, options));
 }
Ejemplo n.º 12
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Popup.Init(this, savedInstanceState);
            Config.Init(this, savedInstanceState);
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            CrossFingerprint.SetCurrentActivityResolver(() => CrossCurrentActivity.Current.Activity);

            UserDialogs.Init(this);

            PullToRefreshLayoutRenderer.Init();

            CachedImageRenderer.Init(true);

            Platform.Init(this, savedInstanceState);
            Forms.Init(this, savedInstanceState);
            Xamarin.FormsMaps.Init(this, savedInstanceState);
            CardsViewRenderer.Preserve();
            RoundedBoxViewRenderer.Init();
            LoadApplication(new App());
        }
Ejemplo 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)
        {
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
            // to avoid linking issues:
            var ignore = typeof(SvgCachedImage);

            VideoPlayerKit.Init();
            PullToRefreshLayoutRenderer.Init();

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

            App.ScreenWidth  = UIScreen.MainScreen.Bounds.Width;
            App.ScreenHeight = UIScreen.MainScreen.Bounds.Height;

            //UINavigationBar.Appearance.BarTintColor = UIColor.FromRGB(24, 150, 188);
            UIColor accentColor = UIColor.FromRGB(24, 150, 188);

            UINavigationBar.Appearance.TintColor = accentColor;
            UISwitch.Appearance.OnTintColor      = accentColor;

            UITextAttributes textAttributes = null;

            if (UIDevice.CurrentDevice.CheckSystemVersion(9, 0))
            {
                textAttributes = new UITextAttributes()
                {
                    Font            = UIFont.FromName("SanFrancisco", (nfloat)20f),
                    TextShadowColor = UIColor.Clear,
                };
            }
            else
            {
                textAttributes = new UITextAttributes()
                {
                    Font            = UIFont.FromName("HelveticaNeue-Light", (nfloat)20f),
                    TextShadowColor = UIColor.Clear,
                };
            }

            UINavigationBar.Appearance.SetTitleTextAttributes(textAttributes);

            Distribute.DontCheckForUpdatesInDebug();

            LoadApplication(new App(new IModule[] { new PlatformContainerModule() }));

            if (options != null && options.ContainsKey(UIApplication.LaunchOptionsLocationKey))
            {
                Log.Info("LaunchOptions contains locationkey");
            }

            if (App.TabiConfig.Notifications.Enabled)
            {
                UIApplication.SharedApplication.RegisterForRemoteNotifications();
            }

            UNUserNotificationCenter.Current.RemoveDeliveredNotifications(new string[] { "termination" });

            return(base.FinishedLaunching(app, options));
        }
 // 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();
 }
 //
 // 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());
     PullToRefreshLayoutRenderer.Init();
     CardsViewRenderer.Preserve();
     return(base.FinishedLaunching(app, options));
 }
Ejemplo n.º 16
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            FormsAppCompatActivity.ToolbarResource   = Resource.Layout.toolbar;
            FormsAppCompatActivity.TabLayoutResource = Resource.Layout.tabs;

            base.OnCreate(savedInstanceState);

            Forms.Init(this, savedInstanceState);
            FormsMaps.Init(this, savedInstanceState);
            AndroidAppLinks.Init(this);
            Toolkit.Init();

            //ZXing.Net.Mobile.Forms.Android.Platform.Init ();
            PullToRefreshLayoutRenderer.Init();
            typeof(Color).GetProperty("Accent", BindingFlags.Public | BindingFlags.Static).SetValue(null, Color.FromHex("#757575"));

            ImageCircle.Forms.Plugin.Droid.ImageCircleRenderer.Init();

            ZXing.Net.Mobile.Forms.Android.Platform.Init();
#if ENABLE_TEST_CLOUD
            //Mapping StyleID to element content descriptions
            Xamarin.Forms.Forms.ViewInitialized += (object sender, Xamarin.Forms.ViewInitializedEventArgs e) => {
                if (!string.IsNullOrWhiteSpace(e.View.StyleId))
                {
                    e.NativeView.ContentDescription = e.View.StyleId;
                }
            };
#endif

#if !ENABLE_TEST_CLOUD
            InitializeHockeyApp();
#endif

            LoadApplication(new App());

            var gpsAvailable = IsPlayServicesAvailable();
            Settings.Current.PushNotificationsEnabled = gpsAvailable;

            if (gpsAvailable)
            {
                client = new GoogleApiClient.Builder(this)
                         .AddApi(AppIndex.API)
                         .Build();
            }

            OnNewIntent(Intent);

            if (!Settings.Current.PushNotificationsEnabled)
            {
                return;
            }
#if ENABLE_TEST_CLOUD
#else
            RegisterWithGCM();
#endif

            DataRefreshService.ScheduleRefresh(this);
        }
Ejemplo n.º 17
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();
            PullToRefreshLayoutRenderer.Init();
            LoadApplication(new App());

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

            LoadApplication(new App());

            PullToRefreshLayoutRenderer.Init();

            return(base.FinishedLaunching(uiApplication, launchOptions));
        }
Ejemplo n.º 19
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();
            Xamarin.FormsMaps.Init();
            LoadApplication(new App());
            PullToRefreshLayoutRenderer.Init();
            ContextMenuScrollViewRenderer.Initialize();

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

            base.OnCreate(savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            PullToRefreshLayoutRenderer.Init();
            LoadApplication(new App());
        }
Ejemplo n.º 21
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            PullToRefreshLayoutRenderer.Init();

            LoadApplication(new App());
            UINavigationBar.Appearance.TintColor   = UIColor.FromRGB(0, 128, 128);
            UINavigationBar.Appearance.Translucent = true;

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

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

            return(base.FinishedLaunching(app, options));
        }
Ejemplo n.º 23
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            global::Xamarin.Forms.Forms.Init(this, bundle);
            Forms9Patch.Droid.Settings.LicenseKey = "NZPK-RMP4-PJVV-Z7LP-78JF-GNXB-CDJZ-SRYA-BLR2-WBZC-G64K-QJZW-65DB";
            //MR.Gestures.Android.Settings.LicenseKey = "ALZ9-BPVU-XQ35-CEBG-5ZRR-URJQ-ED5U-TSY8-6THP-3GVU-JW8Z-RZGE-CQW6";
            UserDialogs.Init(this);
            PullToRefreshLayoutRenderer.Init();
            LoadApplication(new App());
        }
Ejemplo n.º 24
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);
            PullToRefreshLayoutRenderer.Init();
            CachedImageRenderer.Init(true);
            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App());
        }
Ejemplo n.º 25
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            PullToRefreshLayoutRenderer.Init();
            LoadApplication(new App());
        }
Ejemplo n.º 26
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            App.ScreenHeight = (int)(Resources.DisplayMetrics.HeightPixels / Resources.DisplayMetrics.Density);
            App.ScreenWidth  = (int)(Resources.DisplayMetrics.WidthPixels / Resources.DisplayMetrics.Density);

            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(enableFastRenderer: true);
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            PullToRefreshLayoutRenderer.Init();
            Global.android_serial_number = Android.OS.Build.Serial;
            LoadApplication(new App());
        }
Ejemplo n.º 27
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            Plugin.Iconize.Iconize.Init(Resource.Id.toolbar, Resource.Id.sliding_tabs);
            base.OnCreate(savedInstanceState);

            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            PullToRefreshLayoutRenderer.Init();
            LoadApplication(new App());
        }
Ejemplo n.º 28
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            PullToRefreshLayoutRenderer.Init();
            Popup.Init(this, savedInstanceState);
            Plugin.InputKit.Platforms.Droid.Config.Init(this, savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
Ejemplo n.º 29
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            ZXing.Net.Mobile.Forms.iOS.Platform.Init();

            App.ScreenHeight = (int)UIScreen.MainScreen.Bounds.Height;
            App.ScreenWidth  = (int)UIScreen.MainScreen.Bounds.Width;

            PullToRefreshLayoutRenderer.Init();

            LoadApplication(new App());

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

            base.OnCreate(bundle);
            PullToRefreshLayoutRenderer.Init();
            Xamarin.Forms.Forms.Init(this, bundle);

            App.ScreenHeight = (int)(Resources.DisplayMetrics.HeightPixels / Resources.DisplayMetrics.Density);
            App.ScreenWidth  = (int)(Resources.DisplayMetrics.WidthPixels / Resources.DisplayMetrics.Density);

            LoadApplication(new App());
        }