public override bool FinishedLaunching(UIApplication app, NSDictionary options) { ImageCircleRenderer.Init(); //HACK: get iOS to recognize library ByteArrayToImageSourceConverter cn = new ByteArrayToImageSourceConverter(); ImageCircleRenderer.Init(); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); new SfKanbanRenderer(); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { // UINavigationBar.Appearance.BarTintColor = UIColor.White; // UINavigationBar.Appearance.TintColor = UIColor.Black; //Tint color of button items // UINavigationBar.Appearance.SetBackgroundImage(new UIImage(), UIBarMetrics.Default); // UINavigationBar.Appearance.ShadowImage = new UIImage(); // UINavigationBar.Appearance.BackgroundColor = new UIColor(0, 0, 0, 0); // UINavigationBar.Appearance.Translucent = true; Forms.SetFlags("CollectionView_Experimental"); Forms.Init(); ImageCircleRenderer.Init(); LoadApplication(new App(new iOSPlatformInitializer())); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.Window.RequestFeature(WindowFeatures.ActionBar); // Name of the MainActivity theme you had there before. // Or you can use global::Android.Resource.Style.ThemeHoloLight base.SetTheme(Resource.Style.MainTheme); base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); AsNumAssemblyHelper.HoldAssembly(); ImageCircleRenderer.Init(); Downloaded(); ZXing.Net.Mobile.Forms.Android.Platform.Init(); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { FormsAppCompatActivity.ToolbarResource = Droid.Resource.Layout.toolbar; FormsAppCompatActivity.TabLayoutResource = Droid.Resource.Layout.tabs; base.Window.RequestFeature(WindowFeatures.ActionBar); base.SetTheme(Droid.Resource.Style.MyTheme); //set theme to Material AppCompat base.OnCreate(bundle); _appContext = this; global::Xamarin.Forms.Forms.Init(this, bundle); AnimationViewRenderer.Init(); ImageCircleRenderer.Init(); LoadApplication(new App(new IocAndroidModule())); }
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); // Image Circle plugin ImageCircleRenderer.Init(); CrossCurrentActivity.Current.Init(this, savedInstanceState); CrossFingerprint.SetCurrentActivityResolver(() => CrossCurrentActivity.Current.Activity); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); Xamarin.FormsGoogleMaps.Init(this, bundle); ImageCircleRenderer.Init(); DependencyService.Register <ToastNotificatorImplementation>(); ToastNotificatorImplementation.Init(this); global::Xamarin.Forms.Forms.Init(this, bundle); ParseClient.Initialize(new ParseClient.Configuration { ApplicationId = "myAppId", Server = "http://bigbreakers.herokuapp.com/parse/" // trailing slash is important }); ParseFacebookUtils.Initialize("1790522011216423"); LoadApplication(new App()); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.Window.RequestFeature(WindowFeatures.ActionBar); base.SetTheme(Resource.Style.MainTheme); base.OnCreate(savedInstanceState); Window.SetStatusBarColor(Android.Graphics.Color.Black); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); ImageCircleRenderer.Init(); CardsViewRenderer.Preserve(); UserDialogs.Init(() => this); Xamarin.FormsGoogleMaps.Init(this, savedInstanceState); // initialize for LoadApplication(new App()); }
// // 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) { UINavigationBar.Appearance.TintColor = Color.FromHex("#E91E63").ToUIColor(); UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes() { Font = UIFont.PreferredHeadline, TextColor = Color.FromHex("#E91E63").ToUIColor() }); global::Xamarin.Forms.Forms.Init(); Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); SQLitePCL.CurrentPlatform.Init(); ImageCircleRenderer.Init(); LoadApplication(new AdminApp()); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Forms.Init(); FormsMaps.Init(); LoadApplication(new App()); ConfigureTheming(); ImageCircleRenderer.Init(); #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif 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(); global::Xamarin.FormsMaps.Init(); ImageCircleRenderer.Init(); //LoadApplication(new App()); //Set DB root string dbName = "SMove.db3"; string dbBinder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "..", "Library", "Databases"); string dbRoot = Path.Combine(dbBinder, dbName); //Inicialized builder LoadApplication(new App(dbRoot)); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle savedInstanceState) { DualScreenService.Init(this); TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); Instance = this; Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); Xamarin.FormsMaps.Init(this, savedInstanceState); ImageCircleRenderer.Init(); global::Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); //Plugins ImageCircleRenderer.Init(); Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeModule()); CarouselViewRenderer.Init(); FormsPlugin.Iconize.Droid.IconControls.Init(Resource.Id.toolbar, Resource.Id.tabMode); LoadApplication(new App()); }
protected async override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; await CrossMedia.Current.Initialize(); CrossCurrentActivity.Current.Init(this, savedInstanceState); base.OnCreate(savedInstanceState); Rg.Plugins.Popup.Popup.Init(this, savedInstanceState); ImageCircleRenderer.Init(); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { try { TabLayoutResource = 2130903113; // Resource.Layout.Tabbar; ToolbarResource = 2130903114; // Resource.Layout.Toolbar; base.OnCreate(bundle); AsNumAssemblyHelper.HoldAssembly(); //FFImageLoading.Forms.Touch.CachedImageRenderer.Init(); // global::Xamd.ImageCarousel.Forms.Plugin.Droid.ImageCarouselRenderer.Init(); global::Xamarin.Forms.Forms.Init(this, bundle); global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, bundle); OxyPlot.Xamarin.Forms.Platform.Android.PlotViewRenderer.Init(); ImageCircleRenderer.Init(); // CrossCurrentActivity.Current.Init(this, bundle); //FormsPlugin.Iconize.Droid.IconControls.Init(Resource.Id.toolbar); FormsPlugin.Iconize.Droid.IconControls.Init(); FFImageLoading.Forms.Droid.CachedImageRenderer.Init(true); if (Intent.Data != null) { if (Intent.Data.EncodedAuthority.ToString() == "tracker") { string url = Intent.DataString.ToString(); //string[] values = Intent.DataString.ToString().Split('/'); // string inttype = values[values.Length - 1]; string integrationtype = url.Trim().Contains("google_fit") ? "2" : "1"; string integration = url.Substring(url.IndexOf("code=") + 4 + 1); LoadApplication(new App(integrationtype, integration)); } } else { LoadApplication(new App()); } //Log.Debug(TAG, "InstanceID token: " + FirebaseInstanceId.Instance.Token); //ConfigureFireBase(); } catch (System.Exception ex) { Message a = new Message(); a.LongAlert(ex.ToString()); } }
/// <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; List <Assembly> assembliesToInclude = new List <Assembly>(); assembliesToInclude.Add(typeof(CarouselViewRenderer).GetTypeInfo().Assembly); assembliesToInclude.Add(typeof(CachedImage).GetTypeInfo().Assembly); assembliesToInclude.Add(typeof(CachedImageRenderer).GetTypeInfo().Assembly); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(); ImageCircleRenderer.Init(); Xamarin.Forms.Forms.Init(e, assembliesToInclude); 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(); }
/// <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) { #if DEBUG if (System.Diagnostics.Debugger.IsAttached) { this.DebugSettings.EnableFrameRateCounter = true; } #endif 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); ImageCircleRenderer.Init(); Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeModule()); 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); Rg.Plugins.Popup.Popup.Init(this, bundle); Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(this, bundle); Xamarin.Essentials.Platform.Init(this, bundle); FormsMaterial.Init(this, bundle); ImageCircleRenderer.Init(); CardsViewRenderer.Preserve(); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(enableFastRenderer: true); LoadApplication(new App(new AndroidInitializer())); PancakeViewRenderer.Init(); }
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); ImageCircleRenderer.Init(); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(enableFastRenderer: true); var xfApplication = new App(); #if DEBUG HotReloader.Current.Start(xfApplication, 4290); #endif LoadApplication(xfApplication); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); Forms.Init(this, savedInstanceState); ImageCircleRenderer.Init(); var contactManager = new ContactManager(); LoadApplication(new Topichat.Forms.App( contactManager, new ConversationManager( new BrokerConnection(contactManager), new StorageData(), StorageData.Me))); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; var intent = new Intent(ApplicationContext, typeof(PeriodicService)); var source = PendingIntent.GetBroadcast(ApplicationContext, 0, intent, 0); StartService(intent); //PeriodicService.EnqueueWork(ApplicationContext, new Intent()); PrintHashKey(); base.OnCreate(savedInstanceState); GoogleClientManager.Initialize(this); //_bleServer = new BleServer(this.ApplicationContext); Plugin.CurrentActivity.CrossCurrentActivity.Current.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); FirebasePushNotificationManager.ProcessIntent(this, Intent); ImageCircleRenderer.Init(); LoadApplication(new App()); }
// // 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(); ImageCircleRenderer.Init(); // TODO: add the right name for ios font awesome brands foreach (var familyNames in UIFont.FamilyNames.Where(f => f.StartsWith("Font Awesome")).OrderBy(c => c).ToList()) { Console.WriteLine(" * " + familyNames); foreach (var familyName in UIFont.FontNamesForFamilyName(familyNames).OrderBy(c => c).ToList()) { Console.WriteLine(" *-- " + familyName); } } LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle savedInstanceState) { this.SetTheme(Resource.Style.MyTheme); base.OnCreate(savedInstanceState); Forms.Init(this, savedInstanceState); // TODO enable AppLinks, currently there are issues with Google Play Services // AndroidAppLinks.Init(this); Toolkit.Init(); ImageCircleRenderer.Init(); CachedImageRenderer.Init(enableFastRenderer: true); this.LoadApplication(new Clients.UI.App()); this.OnNewIntent(this.Intent); }
protected override void OnCreate(Bundle bundle) { ToolbarResource = Resource.Layout.toolbar; TabLayoutResource = Resource.Layout.tabs; base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); ImageCircleRenderer.Init(); AnimationViewRenderer.Init(); CachedImageRenderer.Init(); UserDialogs.Init(() => this); LoadApplication(new App(new AndroidInitializer())); }
protected override void OnCreate(Bundle bundle) { FormsAppCompatActivity.ToolbarResource = Resource.Layout.toolbar; FormsAppCompatActivity.TabLayoutResource = Resource.Layout.tabs; base.OnCreate(bundle); // Initialize Azure Mobile Apps CurrentPlatform.Init(); // Initialize Xamarin Forms Forms.Init(this, bundle); ImageCircleRenderer.Init(); ActionBar.SetIcon(Android.Resource.Color.Transparent); // Load the main application LoadApplication(new App()); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); CarouselViewRenderer.Init(); SegmentedControlRenderer.Init(); ImageCircleRenderer.Init(); LoadApplication(new App()); //UIViewControllerBasedStatusBarAppearance set false 设置系统栏内容颜色 UIApplication.SharedApplication.SetStatusBarStyle(UIStatusBarStyle.LightContent, false); //修改TabBar选中颜色 //http://motzcod.es/post/138225183932/tintcolor-selectedimage-xamarin-forms-ios UITabBar.Appearance.SelectedImageTintColor = UIColor.Red; return(base.FinishedLaunching(app, options)); }
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"); CrossCurrentActivity.Current.Init(this, savedInstanceState); FacebookSdk.SdkInitialize(this); global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, savedInstanceState); #region Facebook DependencyService.Register <IFacebookService, FacebookService>(); #endregion Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); ImageCircleRenderer.Init(); LoadApplication(new App()); FirebasePushNotificationManager.ProcessIntent(this, Intent); }
// // 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) { _iocConfig = new iOSIoCConfig(); App.Locator = new ViewModelLocator(_iocConfig); App.MainPageScreenWidth = (double)UIScreen.MainScreen.Bounds.Width; App.MainPageScreenHeight = (double)UIScreen.MainScreen.Bounds.Height; Rg.Plugins.Popup.Popup.Init(); global::Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental"); global::Xamarin.Forms.Forms.SetFlags("IndicatorView_Experimental"); global::Xamarin.Forms.Forms.Init(); CarouselViewRenderer.Init(); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(); ZXing.Net.Mobile.Forms.iOS.Platform.Init(); ImageCircleRenderer.Init(); XF.Material.iOS.Material.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); //Profile.EnableUpdatesOnAccessTokenChange(true); //Settings.AppID = appId; //Settings.DisplayName = appName; //TODO:push notification falta integrar ios app.UnregisterForRemoteNotifications(); var pushSettings = UIUserNotificationSettings.GetSettingsForTypes( UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, null ); app.RegisterUserNotificationSettings(pushSettings); app.RegisterForRemoteNotifications(); UISwitch.Appearance.OnTintColor = Color.FromHex("#548EBD").ToUIColor(); UINavigationBar.Appearance.TintColor = Color.White.ToUIColor(); //establecer color de fondo sin esto, al levantar el album de photos no se distinguen los titulos UINavigationBar.Appearance.BarTintColor = Color.FromHex("#1C5885").ToUIColor(); UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes() { TextColor = UIColor.White }); //PlotProjects.Plugin.Plot.GetInstance(options, true); ImageCircleRenderer.Init(); Xamarin.FormsMaps.Init(); Xamarin.IQKeyboardManager.SharedManager.Enable = true; //IQKeyboardManager.SharedManager.Enable = true; App.CurrentVersion = NSBundle.MainBundle.InfoDictionary["CFBundleVersion"].ToString(); 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); Plugin.Iconize.Iconize.With(new Plugin.Iconize.Fonts.FontAwesomeModule()); UserDialogs.Init(this); global::Xamarin.Forms.Forms.Init(this, bundle); ImageCircleRenderer.Init(); FormsPlugin.Iconize.Droid.IconControls.Init(ToolbarResource, TabLayoutResource); LoadApplication(new App()); }
// // 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 DEBUG Xamarin.Calabash.Start(); #endif #if ENABLE_TEST_CLOUD // requires Xamarin Test Cloud Agent Xamarin.Calabash.Start(); #endif Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); global::Xamarin.Forms.Forms.Init(); ImageCircleRenderer.Init(); LoadApplication(new App()); KeyboardOverlapRenderer.Init(); return(base.FinishedLaunching(app, options)); }