Exemplo 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();
            ContextMenuViewRenderer.Preserve();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Exemplo n.º 2
0
 public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions)
 {
     Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental");
     FFImageLoading.Forms.Platform.CachedImageRenderer.Init();
     global::Xamarin.Forms.Forms.Init();
     CachedImageRenderer.InitImageSourceHandler();
     ContextMenuViewRenderer.Preserve();
     LoadApplication(new App());
     return(base.FinishedLaunching(uiApplication, launchOptions));
 }
Exemplo n.º 3
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.SetFlags("SwipeView_Experimental");
            global::Xamarin.Forms.Forms.Init();
            global::Xamarin.Forms.FormsMaterial.Init();
            AiForms.Renderers.iOS.SettingsViewInit.Init();
            ContextMenuViewRenderer.Preserve();
            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);

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            ContextMenuViewRenderer.Preserve();
            LoadApplication(new App());
        }
Exemplo n.º 5
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental");
            global::Xamarin.Forms.Forms.Init(this, bundle);
            ContextMenuViewRenderer.Preserve();
            LoadApplication(new App());
        }
Exemplo n.º 6
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            CrossCurrentActivity.Current.Init(this, savedInstanceState);

            global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, savedInstanceState);

            FlowListView.Init();
            base.OnCreate(savedInstanceState);
            Xamarin.Essentials.Platform.Init(this, savedInstanceState); // add this line to your code, it may also be called: bundle
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            ContextMenuViewRenderer.Preserve();
            Plugin.InputKit.Platforms.Droid.Config.Init(this, savedInstanceState);
            FacebookClientManager.Initialize(this);
            string pagename = null;
            string data     = null;

            if (Intent.Extras != null)
            {
                pagename = Intent.GetStringExtra("PageName") ?? string.Empty;
                data     = Intent.GetStringExtra("Data") ?? string.Empty;
            }
            CardsViewRenderer.Preserve();

            Window window = ((MainActivity)Forms.Context).Window;

            window.AddFlags(WindowManagerFlags.KeepScreenOn);
            //if (Intent.Extras != null)
            //{
            //    if (!App.Current.Properties.ContainsKey("NotificationPage"))
            //    {
            //        pagename = null;
            //    }
            //    else
            //    {
            //        pagename= App.Current.Properties["NotificationPage"].ToString();
            //    }

            //    if (!App.Current.Properties.ContainsKey("notificationData"))
            //    {
            //        data = null;
            //    }
            //    else
            //    {
            //        data = App.Current.Properties["notificationData"].ToString();
            //    }
            //}
            LoadApplication(new App(pagename, data));
        }
Exemplo n.º 7
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = MaxVonGrafKftMobile.Droid.Resource.Layout.Tabbar;
            ToolbarResource   = MaxVonGrafKftMobile.Droid.Resource.Layout.Toolbar;
            CrossCurrentActivity.Current.Init(this, savedInstanceState);

            global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, savedInstanceState);

            FlowListView.Init();
            base.OnCreate(savedInstanceState);
            Rg.Plugins.Popup.Popup.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            CrossCurrentActivity.Current.Init(this, savedInstanceState);
            ContextMenuViewRenderer.Preserve();
            Plugin.InputKit.Platforms.Droid.Config.Init(this, savedInstanceState);
            FacebookClientManager.Initialize(this);
            string pagename = null;
            string data     = null;

            if (Intent.Extras != null)
            {
                pagename = Intent.GetStringExtra("PageName") ?? string.Empty;
                data     = Intent.GetStringExtra("Data") ?? string.Empty;
            }
            CardsViewRenderer.Preserve();
            //if (Intent.Extras != null)
            //{
            //    if (!App.Current.Properties.ContainsKey("NotificationPage"))
            //    {
            //        pagename = null;
            //    }
            //    else
            //    {
            //        pagename= App.Current.Properties["NotificationPage"].ToString();
            //    }

            //    if (!App.Current.Properties.ContainsKey("notificationData"))
            //    {
            //        data = null;
            //    }
            //    else
            //    {
            //        data = App.Current.Properties["notificationData"].ToString();
            //    }
            //}
            LoadApplication(new App(pagename, data));
        }
Exemplo n.º 8
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            Forms.SetFlags("SwipeView_Experimental");

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            global::Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState);
            AiForms.Renderers.Droid.SettingsViewInit.Init();
            ContextMenuViewRenderer.Preserve();
            LoadApplication(new App());
            SetAppTheme();
        }
Exemplo 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)
        {
            Rg.Plugins.Popup.Popup.Init();
            FlowListView.Init();
            global::Xamarin.Forms.Forms.Init();
            ContextMenuViewRenderer.Preserve();
            Plugin.InputKit.Platforms.iOS.Config.Init();
            string pagename = null;
            string data     = null;

            CardsViewRenderer.Preserve();
            LoadApplication(new App(pagename, data));
            global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init();
            FacebookClientManager.OnActivated();
            FacebookClientManager.Initialize(app, options);
            return(base.FinishedLaunching(app, options));
        }
Exemplo n.º 10
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;
            Plugin.CurrentActivity.CrossCurrentActivity.Current.Activity = this;
            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(enableFastRenderer: true);


            base.OnCreate(savedInstanceState);
            Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental");
            Xamarin.Forms.Forms.SetFlags("CarouselView_Experimental");

            Xamarin.Essentials.Platform.Init(this, savedInstanceState);
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            CachedImageRenderer.InitImageViewHandler();
            UserDialogs.Init(this);
            ContextMenuViewRenderer.Preserve();

            LoadApplication(new App());
        }