public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); FormsMaps.Init(); CachedImageRenderer.Init(); CarouselViewRenderer.Init(); // Configure App Center Distribute.DontCheckForUpdatesInDebug(); // HACK: Get the linker to behave var ignore = new CircleTransformation(); #if ENABLE_TEST_CLOUD // Code for starting up the Xamarin Test Cloud Agent 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)); }
public override bool FinishedLaunching (UIApplication app, NSDictionary options) { // create a new window instance based on the screen size window = new UIWindow (UIScreen.MainScreen.Bounds); UINavigationBar.Appearance.TintColor = Color.Yellow.ToUIColor (); UINavigationBar.Appearance.BarTintColor = Color.Green.ToUIColor (); //override navigation bar title with text attributes UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes () { TextColor = Color.Pink.ToUIColor () }); Xamarin.Calabash.Start (); Forms.Init (); FormsMaps.Init (); window.RootViewController = FormsApp.GetFormsApp ().CreateViewController (); MessagingCenter.Subscribe<RootPagesGallery, Type> (this, Messages.ChangeRoot, (sender, pagetype) => { window = new UIWindow (UIScreen.MainScreen.Bounds); window.RootViewController = ((Page) Activator.CreateInstance(pagetype)).CreateViewController(); window.MakeKeyAndVisible (); }); MessagingCenter.Subscribe<HomeButton> (this, Messages.GoHome, (sender) => { window = new UIWindow (UIScreen.MainScreen.Bounds); window.RootViewController = FormsApp.GetFormsApp ().CreateViewController (); window.MakeKeyAndVisible (); }); // make the window visible window.MakeKeyAndVisible (); return true; }
protected override void OnCreate(Bundle savedInstanceState) { // ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; base.OnCreate(savedInstanceState); try { Xamarin.Essentials.Platform.Init(this, savedInstanceState); Forms.Init(this, savedInstanceState); FormsMaps.Init(this, savedInstanceState); Forms.SetTitleBarVisibility(this, AndroidTitleBarVisibility.Never); App ap = new MEI.App(); LoadApplication(ap); //this.ActionBar.Hide(); CachedImageRenderer.Init(enableFastRenderer: true); RoundedBoxViewRenderer.Init(); RequestPermissions(permisons, 0); App.ScreenWidth = (int)Resources.DisplayMetrics.WidthPixels; App.ScreenHeight = (int)Resources.DisplayMetrics.HeightPixels; App.CopyToClipBoard = CopyText; App.createContact = CreateContact; App.localPushNotification = LocalNotification; App.SaveUser = SaveUserID; App.GetUserEvent = SetGetUser; App.AppVersion = ApplicationContext.PackageManager.GetPackageInfo(ApplicationContext.PackageName, 0).VersionName; App.cropImage = CropImage; App.ResetUser = ResetUserID; App.closeApp = CloseApp; App.SetDomainData = SetDomainData; App.SetNotificaiton = SetNotification; App.resetRoundView = ResetRoundView; App.SetNotificationSounds = SetNotificationSound; App.SetUserData = SetUserData; App.PushNotification = AndroidPushNotification; App.AddEventReminder = SetCurrentEventReminder; ISharedPreferences pref = GetSharedPreferences("MEI_UserPreferences", FileCreationMode.Private); bool hasDirectory = pref.Contains("DomainDirectory"); if (!hasDirectory) { ISharedPreferencesEditor editor = pref.Edit(); editor.Clear(); editor.Apply(); editor.PutBoolean("DomainDirectory", App.NotificationSounds); editor.Apply(); } GetDomainData(); GetNotification(); GetUserData(); GetNotificationSound(); //FirebasePushNotificationManager.ProcessIntent(this, Intent); ap.StartApp(); } catch (Exception e) { Console.WriteLine(e.ToString()); Log.Debug("Creation Error", "Error in creating Application.."); } }
protected override void OnCreate(Bundle bundle) { RegisterDependencies(); Settings.OnDataPartitionPhraseChanged += (sender, e) => { UpdateDataSourceIfNecessary(); }; // Azure Mobile Services initilizatio Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); CachedImageRenderer.Init(); // this line is essential to wiring up the toolbar styles defined in ~/Resources/layout/toolbar.axml FormsAppCompatActivity.ToolbarResource = Resource.Layout.toolbar; base.OnCreate(bundle); // register HockeyApp as the crash reporter CrashManager.Register(this, Settings.HockeyAppId); Forms.Init(this, bundle); FormsMaps.Init(this, bundle); LoadApplication(new App()); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { FirebasePushNotificationManager.Initialize(options, true); global::Xamarin.Forms.Forms.Init(); KeyboardOverlap.Forms.Plugin.iOSUnified.KeyboardOverlapRenderer.Init(); global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init(); FormsMaps.Init(); FFImageLoading.Forms.Touch.CachedImageRenderer.Init(); var dummy = new FFImageLoading.Forms.Touch.CachedImageRenderer(); var ignore = new FFImageLoading.Transformations.CircleTransformation(); App.ScreenHeight = (int)UIScreen.MainScreen.Bounds.Height; App.ScreenWidht = (int)UIScreen.MainScreen.Bounds.Width; // KeyboardOverlapRenderer.Init(); LoadApplication(new App()); var manager = BITHockeyManager.SharedHockeyManager; manager.Configure("440c8d3c2763449c86a17a06d73c26e6"); //TODO: CAMBIAR manager.StartManager(); InitNotifiactions(app, options); return(base.FinishedLaunching(app, options)); }
/// <summary> /// Finisheds the launching. /// </summary> /// <returns><c>true</c>, if launching was finisheded, <c>false</c> otherwise.</returns> /// <param name="uiApplication">User interface application.</param> /// <param name="launchOptions">Launch options.</param> public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions) { Forms.Init(); // http://forums.xamarin.com/discussion/21148/calabash-and-xamarin-forms-what-am-i-missing Forms.ViewInitialized += (sender, e) => { // http://developer.xamarin.com/recipes/testcloud/set-accessibilityidentifier-ios/ if (null != e.View.StyleId) { e.NativeView.AccessibilityIdentifier = e.View.StyleId; } }; FormsMaps.Init(); // Code for starting up the Xamarin Test Cloud Agent #if ENABLE_TEST_CLOUD Calabash.Start(); #endif CrossGeofence.Initialize <CrossGeofenceListener>(); this.LoadApplication(new App()); return(base.FinishedLaunching(uiApplication, launchOptions)); }
public MainPage() { this.InitializeComponent(); FormsMaps.Init("J6UYHMM7FiBhyBGttpnG~tB3m04Yf9qWE8r7vGzz3jg~AmKDpEn-vqbyAz7fuFowrSxWHGcXeW5ph7G2JvOcIOZyKbcSEXlFqq6IkAZQT4L2"); LoadApplication(new Maps.App()); }
protected override void OnCreate(Bundle savedInstanceState) { BackgroundAggregator.Init(this); Platform.Init(this, savedInstanceState); Forms.Init(this, savedInstanceState); FormsMaps.Init(this, savedInstanceState); CachedImageRenderer.Init(true); Instance = this; TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); CheckPermissions(); CrossCurrentActivity.Current.Init(this, savedInstanceState); DisplayLocationSettingsRequest(); LoadApplication(new App()); if (ContextCompat.CheckSelfPermission(this, Manifest.Permission.WriteExternalStorage) == Permission.Granted || ContextCompat.CheckSelfPermission(this, Manifest.Permission.ReadExternalStorage) == Permission.Granted) { InitLog(); } }
public MainPage() { this.InitializeComponent(); FormsMaps.Init("INSERT_AUTHENTICATION_TOKEN_HERE"); //XF.Material.Forms.Material.Init(); this.LoadApplication(new Samples.App()); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { new SfChartRenderer(); // This is necessary for initializing SyncFusion charts. #if DEBUG Xamarin.Calabash.Start(); #endif // Azure Mobile Services initilization Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); // SQLite initialization SQLitePCL.CurrentPlatform.Init(); // Xamarin.Forms initialization Forms.Init(); // Xamarin.Forms.Maps initialization FormsMaps.Init(); // Bootstrap the "core" Xamarin.Forms app LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); // init Forms components MobileCRMApp.Init(typeof(MobileCRMApp).Assembly); Forms.Init(this, bundle); FormsMaps.Init(this, bundle); // check for permissions in Runtime var permissionCheck = ContextCompat.CheckSelfPermission(this, Manifest.Permission.AccessFineLocation); if (!permissionCheck.Equals(Permission.Granted)) { // there is no granted permission to ACCESS_FINE_LOCATION. Requesting it in runtime ActivityCompat.RequestPermissions(this, new string[] { Manifest.Permission.AccessFineLocation }, RequestAccessFineLocation); } else { // the permission was granted in the past InitApp(); } }
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)); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); // Use Android Fast Renderers Xamarin.Forms.Forms.SetFlags("FastRenderers_Experimental"); global::Xamarin.Forms.Forms.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()); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Popup.Init(this, savedInstanceState); Forms.Init(this, savedInstanceState); Platform.Init(this, savedInstanceState); FormsMaps.Init(this, savedInstanceState); Receiver = new LocationSettingsBroadcastsReceiver(); AppCenter.Start("4b376e42-98b2-47fd-af73-7a84453954f9", typeof(Analytics), typeof(Crashes)); var dm = new DisplayMetrics(); var windowManager = GetSystemService(WindowService).JavaCast <IWindowManager>(); windowManager.DefaultDisplay.GetRealMetrics(dm); App.ScreenHeight = (int)Math.Ceiling(dm.Ydpi); App.ScreenWidth = (int)Math.Ceiling(dm.Xdpi); App.ScreenDensity = dm.Density; if (_app == null) { _app = new App(); } LoadApplication(_app); }
/// <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); FormsMaps.Init("AUTHENTICATION_TOKEN"); 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(); }
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); //ImageCircleRenderer.Init(); //AnimationViewRenderer.Init(); FormsMaps.Init(this, bundle); CarouselViewRenderer.Init(); Plugin.CurrentActivity.CrossCurrentActivity.Current.Activity = this; // 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()); }
/// <summary> /// Initializes the singleton application object. This is the first line of authored code /// executed, and as such is the logical equivalent of main() or WinMain(). /// </summary> public App() { this.InitializeComponent(); this.Suspending += OnSuspending; FormsMaps.Init("Ast75pYuQ6UEi9VBrUjRXwYc5MPxW8qO5bKnwekL-WOYEw36Ajp-sqaUiQFyOiu7"); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { new SfChartRenderer(); // This is necessary for initializing SyncFusion charts. #if DEBUG Xamarin.Calabash.Start(); ObjCRuntime.Dlfcn.dlopen("recorderPluginCalabash.dylib", 0); #endif // Azure Mobile Services initilization Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); // SQLite initialization SQLitePCL.CurrentPlatform.Init(); // Xamarin.Forms initialization Forms.Init(); // Xamarin.Forms.Maps initialization FormsMaps.Init(); ImageCircle.Forms.Plugin.iOS.ImageCircleRenderer.Init(); // Bootstrap the "core" Xamarin.Forms app LoadApplication(new App()); // Apply OS-specific color theming ConfigureApplicationTheming(); return(base.FinishedLaunching(app, options)); }
//string HOCKEYAPP_APPID = "febab6eb36ed4e3bb55ba976df3d2df4"; //protected override void OnResume() //{ // base.OnResume(); // CrashManager.Register(this, HOCKEYAPP_APPID); //} protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.SetTheme(Resource.Style.MainTheme); base.OnCreate(bundle); Forms.SetFlags("CollectionView_Experimental"); Forms.SetFlags("FastRenderers_Experimental"); Xamarin.Essentials.Platform.Init(this, bundle); global::Xamarin.Forms.Forms.Init(this, bundle); Fabric.Fabric.With(this, new Crashlytics.Crashlytics()); Crashlytics.Crashlytics.HandleManagedExceptions(); CachedImageRenderer.Init(true); var ignore = typeof(SvgCachedImage); LoadApplication(new App(new AndroidInitializer())); XF.Material.Droid.Material.Init(this, bundle); //Forms.SetFlags("CollectionView_Experimental"); //Forms.SetFlags("FastRenderers_Experimental"); CrossCurrentActivity.Current.Init(this, bundle); FormsMaps.Init(this, bundle); Rg.Plugins.Popup.Popup.Init(this, bundle); ImageCircleRenderer.Init(); FirebaseApp.InitializeApp(this); GetGalleryPermissions(); //CheckForGoogleServices(); //FirebasePushNotificationManager.ProcessIntent(this, Intent); }
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(); }
/// <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); FormsMaps.Init("28ii9Qv3xYaI1ZJHURGf~B3kmOZCioD9swP00PZW9bg~As3o2dResn4kBpSP1GSTSdWbOMNjD024hGEoxUAunAAZZxig0X94-zzZR5BzVEJ0"); 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(); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); // Azure Mobile Services initilization Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); Forms.Init(this, bundle); FormsMaps.Init(this, bundle); new SfChartRenderer(); // This is necessary for initializing SyncFusion charts. //#if DEBUG //Insights.Initialize(Insights.DebugModeKey, this); //#else Insights.Initialize("2b82ddc37582e6c1bece7e5901e8bae3bf7bfb26", this); //#endif LoadApplication(new App()); if ((int)Build.VERSION.SdkInt >= 21) { ActionBar.SetIcon(new ColorDrawable(Resources.GetColor(Android.Resource.Color.Transparent))); } }
// // 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(); FormsMaps.Init(); SvgImageRenderer.Init(); ExtendedTextCellRenderer.Init(); RoundedBoxViewRenderer.Init(); global::Xamarin.Forms.Forms.ViewInitialized += (object sender, ViewInitializedEventArgs e) => { // http://developer.xamarin.com/recipes/testcloud/set-accessibilityidentifier-ios/ if (null != e.View.StyleId) { e.NativeView.AccessibilityIdentifier = e.View.StyleId; Console.WriteLine("Set AccessibilityIdentifier: " + e.View.StyleId); } }; #if DEBUG // requires Xamarin Test Cloud Agent component Calabash.Start(); #endif LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Xamarin.Forms.Forms.Init(this, bundle); FormsMaps.Init(this, bundle); SvgImageRenderer.Init(); ExtendedTextCellRenderer.Init(); ExtendedMapRenderer.Init(); RoundedBoxViewRenderer.Init(); // http://forums.xamarin.com/discussion/21148/calabash-and-xamarin-forms-what-am-i-missing global::Xamarin.Forms.Forms.ViewInitialized += (object sender, Xamarin.Forms.ViewInitializedEventArgs e) => { if (!string.IsNullOrWhiteSpace(e.View.StyleId)) { if (e.NativeView != null) { e.NativeView.ContentDescription = e.View.StyleId; } } }; LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Forms.SetFlags("FastRenderers_Experimental"); Forms.Init(this, bundle); FormsMaps.Init(this, bundle); ViewGesturesRenderer.Init(); CachedImageRenderer.Init(true); AndroidBug5497Workaround.AssistActivity(this); if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop) { Window.DecorView.SystemUiVisibility = (StatusBarVisibility)(SystemUiFlags.LayoutStable | SystemUiFlags.LayoutFullscreen); } App.ScreenWidth = this.FromPixels(Resources.DisplayMetrics.WidthPixels); App.ScreenHeight = this.FromPixels(Resources.DisplayMetrics.HeightPixels); DependencyService.Register <IPhoneService, PhoneService>(); DependencyService.Register <IImageService, ImageService>(); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); System.Maui.Maui.SetFlags("Fake_Flag"); // So we can test for flag initialization issues System.Maui.Maui.Init(this, bundle); FormsMaps.Init(this, bundle); System.Maui.Maui.ViewInitialized += (sender, e) => { if (!string.IsNullOrWhiteSpace(e.View.StyleId)) { e.NativeView.ContentDescription = e.View.StyleId; } }; // uncomment to verify turning off title bar works. This is not intended to be dynamic really. //System.Maui.SetTitleBarVisibility (AndroidTitleBarVisibility.Never); var app = _app = new App(); // When the native control gallery loads up, it'll let us know so we can add the nested native controls MessagingCenter.Subscribe <NestedNativeControlGalleryPage>(this, NestedNativeControlGalleryPage.ReadyForNativeControlsMessage, AddNativeControls); // When the native binding gallery loads up, it'll let us know so we can set up the native bindings MessagingCenter.Subscribe <NativeBindingGalleryPage>(this, NativeBindingGalleryPage.ReadyForNativeBindingsMessage, AddNativeBindings); SetUpForceRestartTest(); LoadApplication(app); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { var manager = BITHockeyManager.SharedHockeyManager; manager.Configure(Settings.HockeyAppId); manager.StartManager(); RegisterDependencies(); Settings.OnDataPartitionPhraseChanged += (sender, e) => { UpdateDataSourceIfNecessary(); }; #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif Forms.Init(); Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); SQLitePCL.CurrentPlatform.Init(); FormsMaps.Init(); CachedImageRenderer.Init(); LoadApplication(new App()); ConfigureTheming(); return(base.FinishedLaunching(app, options)); }
// // 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(); var workaround = typeof(UXDivers.Artina.Shared.CircleImage); RegisterDependencies(); Settings.OnDataPartitionPhraseChanged += (sender, e) => { UpdateDataSourceIfNecessary(); }; #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif Forms.Init(); FormsMaps.Init(); CachedImageRenderer.Init(); var ignore = new CircleTransformation(); LoadApplication(new App()); ConfigureTheming(); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); if (!Debugger.IsAttached) { Insights.Initialize(App.InsightsApiKey, ApplicationContext); } Forms.Init(this, bundle); FormsMaps.Init(this, bundle); Forms.ViewInitialized += (sender, e) => { if (!string.IsNullOrWhiteSpace(e.View.StyleId)) { e.NativeView.ContentDescription = e.View.StyleId; } }; // uncomment to verify turning off title bar works. This is not intended to be dynamic really. //Forms.SetTitleBarVisibility (AndroidTitleBarVisibility.Never); var app = _app = new App(); // When the native control gallery loads up, it'll let us know so we can add the nested native controls MessagingCenter.Subscribe <NestedNativeControlGalleryPage>(this, NestedNativeControlGalleryPage.ReadyForNativeControlsMessage, AddNativeControls); // When the native binding gallery loads up, it'll let us know so we can set up the native bindings MessagingCenter.Subscribe <NativeBindingGalleryPage>(this, NativeBindingGalleryPage.ReadyForNativeBindingsMessage, AddNativeBindings); LoadApplication(app); }
public MainWindow() { InitializeComponent(); Xamarin.Forms.Forms.Init(); FormsMaps.Init(""); LoadApplication(new Controls.App()); }