// // 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) { Popup.Init(); global::Xamarin.Forms.Forms.Init(); Renderers.Init(); DeviceOrientationImplementation.Init(); //DependencyService.Register<ToastNotificatorImplementation>(); //ToastNotificatorImplementation.Init(); ImageCircleRenderer.Init(); if (!Resolver.IsSet) { SetIoc(); } LoadApplication(new MasTicket.App()); MessagingCenter.Subscribe <Page, string>(this, "Share", (sender, arg) => { Share(arg); }); MessagingCenter.Subscribe <Page>(this, "LogOutFace", (sender) => { LogOutFace(); }); //ShareImplementation.ExcludedUIActivityTypes = new List<NSString> { UIActivityType.PostToFacebook }; Facebook.CoreKit.AppEvents.ActivateApp(); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Xamarin.Forms.Forms.Init(this, bundle); Renderers.Init(); SetPage(App.GetMainPage()); }
// Constructor #region Constructors public MainPage() { InitializeComponent(); Forms.Init(); Renderers.Init(); Content = PagedCarouselPage.Sample.App.GetMainPage().ConvertPageToUIElement(this); }
// // 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(); Renderers.Init(); this.LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Forms.Init(); Renderers.Init(); // create a new window instance based on the screen size _window = new UIWindow(UIScreen.MainScreen.Bounds); _window.RootViewController = App.GetMainPage().CreateViewController(); _window.MakeKeyAndVisible(); return(true); }