public BeerDetailsPage() { InitializeComponent(); // HACK: Needed to not optimize transformations dll out var foo = new CircleTransformation(); }
// // 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)); }
public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions) { global::Xamarin.Forms.Forms.Init(); Naxam.Effects.Platform.iOS.ViewStyleEffect.Init(); global::Rg.Plugins.Popup.Popup.Init(); global::FFImageLoading.Forms.Touch.CachedImageRenderer.Init(); global::FFImageLoading.ImageService.Instance.Initialize(new FFImageLoading.Config.Configuration() { Logger = new Valuta.Services.DebugLogger() }); Distribute.DontCheckForUpdatesInDebug(); var plz = new CircleTransformation(); var linker = typeof(SvgCachedImage); RestClient.Init(new iOSMessageHandlerFactory()); // Code for starting up the Xamarin Test Cloud Agent #if DEBUG Xamarin.Calabash.Start(); #endif try { LoadApplication(new App(new iOSInitializer())); return(base.FinishedLaunching(uiApplication, launchOptions)); } catch (Exception e) { Debug.WriteLine(e.ToString()); return(base.FinishedLaunching(uiApplication, launchOptions)); } }
// // 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 (!string.IsNullOrWhiteSpace(AppSettings.HockeyAppiOS)) { var manager = BITHockeyManager.SharedHockeyManager; manager.Configure(AppSettings.HockeyAppiOS); // Disable update manager manager.DisableUpdateManager = true; manager.StartManager(); } global::Xamarin.Forms.Forms.Init(); RegisterPlatformDependencies(); Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init(); CachedImageRenderer.Init(); PhoneCallService.Init(); var ignore = new CircleTransformation(); Xamarin.FormsMaps.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); //AnimationViewRenderer.Init(); FormsMaps.Init(); CachedImageRenderer.Init(); CarouselViewRenderer.Init(); // Configure App Center Distribute.DontCheckForUpdatesInDebug(); //HACK to 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)); }
private static void InitializeDependencies() { Toolkit.Init(); ShareImplementation.ExcludedUIActivityTypes = new List <NSString> { UIActivityType.PostToFacebook, UIActivityType.AssignToContact, UIActivityType.OpenInIBooks, UIActivityType.PostToVimeo, UIActivityType.PostToFlickr, UIActivityType.SaveToCameraRoll }; ImageCircleRenderer.Init(); NonScrollableListViewRenderer.Initialize(); SelectedTabPageRenderer.Initialize(); CachedImageRenderer.Init(); // this is needed to tell linker to keep this type. See https://github.com/luberda-molinet/FFImageLoading/issues/462 var ignore = new CircleTransformation(); // this is needed to tell linker to keep this type var dummy = new DateTimeOffsetConverter(); }
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(); FormsMaps.Init(); CachedImageRenderer.Init(); LoadApplication(new App()); ConfigureTheming(); // Workaround for FFImageLoading CircleTransformation not found. var ignore = new CircleTransformation(); return(base.FinishedLaunching(app, options)); }
private static void InitializeCachedImageService() { ImageService.Instance.Initialize(); CachedImage.FixedOnMeasureBehavior = true; CachedImageRenderer.Init(); var ignore = typeof(SvgCachedImage); var ignore2 = new CircleTransformation(); var ignore3 = new TintTransformation(); }
// // 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 ignore = new CircleTransformation(); LoadApplication(new App()); App.IdentityClientApp.RedirectUri = App.RedirectUri; 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(); LoadApplication(new App(new iOSInitializer())); UITabBar.Appearance.SelectedImageTintColor = UIColor.FromRGB(247, 144, 18); CachedImageRenderer.Init(); var ignore = new CircleTransformation(); 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(); CachedImageRenderer.Init(); //HACK needed to load FFImageLoading Transformations URL var foo = new CircleTransformation(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); CachedImageRenderer.Init(); CarouselViewRenderer.Init(); var ignore = new CircleTransformation(); LoadApplication(new App(new iOSInitializer())); return(base.FinishedLaunching(app, options)); }
private void SetImageBorder(string borderColor) { var transformation = new CircleTransformation { BorderHexColor = borderColor }; Device.OnPlatform( iOS: () => transformation.BorderSize = 30, Default: () => transformation.BorderSize = 20); Photo.Transformations.Add(transformation); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { var tint = UIColor.FromRGB(71, 57, 87); UINavigationBar.Appearance.BarTintColor = UIColor.FromRGB(71, 57, 87); //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; global::Xamarin.Forms.Forms.Init(); CachedImageRenderer.Init(); var ignore = new CircleTransformation(); //ImageCircleRenderer.Init(); //SQLite.CurrentPlatform.Init(); //Xamarin.FormsMaps.Init(); SQLitePCL.Batteries_V2.Init(); // Xamarin.FormsMaps.Init(); // Code for starting up the Xamarin Test Cloud Agent #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif Appearance.Configure(); /*var manager = BITHockeyManager.SharedHockeyManager; * manager.Configure("357505c40ba44b329fe4fd9694e6fa44"); * manager.StartManager();*/ LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
private static void InitializeDependencies() { Toolkit.Init(); ImageCircleRenderer.Init(); NonScrollableListViewRenderer.Initialize(); SelectedTabPageRenderer.Initialize(); CachedImageRenderer.Init(); // this is needed to tell linker to keep this type. See https://github.com/luberda-molinet/FFImageLoading/issues/462 var ignore = new CircleTransformation(); // this is needed to tell linker to keep this type var dummy = new DateTimeOffsetConverter(); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { Rg.Plugins.Popup.Popup.Init(); global::Xamarin.Forms.Forms.Init(); //global::Xamarin.FormsMaps.Init (); //Xamarin.FormsGoogleMaps.Init("AIzaSyDoXdTaPhf4w3EQpjciwMVsQJ4TPcMGXjY"); //Xamarin.Forms.DependencyService.Register<Platform_Implemetation_IOS>(); XamForms.Controls.iOS.Calendar.Init(); SfListViewRenderer.Init(); CRCloudRail.AppKey = "5c27501221b62e522887898e"; FFImageLoading.Forms.Platform.CachedImageRenderer.Init(); var ignore = new CircleTransformation(); LoadApplication(new App()); 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) { // set a delegate to handle incoming notifications UNUserNotificationCenter.Current.Delegate = new iOSNotificationReceiver(); global::Xamarin.Forms.Forms.Init(); CardsViewRenderer.Preserve(); LoadApplication(new App()); CachedImageRenderer.Init(); var ignore = new CircleTransformation(); CachedImageRenderer.InitImageSourceHandler(); global::Xamarin.Auth.Presenters.XamarinIOS.AuthenticationConfiguration.Init(); return(base.FinishedLaunching(app, options)); }
private void SetImageBorder(string borderColor) { var transformation = new CircleTransformation { BorderHexColor = borderColor }; if (Device.RuntimePlatform == Device.iOS) { transformation.BorderSize = 30; } else { transformation.BorderSize = 20; } Photo.Transformations.Add(transformation); }
// // 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.Init(); var ignore = new CircleTransformation(); //FFImageLoading initialization CachedImageRenderer.Init(); var config = new FFImageLoading.Config.Configuration() { VerboseLogging = false, VerbosePerformanceLogging = false, VerboseMemoryCacheLogging = false, VerboseLoadingCancelledLogging = false, Logger = new CustomLogger(), }; ImageService.Instance.Initialize(config); ToastNotification.Init(); LoadApplication(new App()); DependencyService.Register <ToastNotification>(); if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0)) { // Request Permissions UNUserNotificationCenter.Current.RequestAuthorization(UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound, (granted, error) => { // Do something if needed }); } else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0)) { var notificationSettings = UIUserNotificationSettings.GetSettingsForTypes( UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, null ); app.RegisterUserNotificationSettings(notificationSettings); } AppCenter.Start(Constants.AppCenter.iOS, typeof(Analytics), typeof(Crashes)); return(base.FinishedLaunching(app, options)); }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); // Code for starting up the Xamarin Test Cloud Agent #if DEBUG Xamarin.Calabash.Start(); #endif //FFImageLoading 초기화 CachedImageRenderer.Init(); // Xamarin.Forms linker issue //var ignore = new CachedImage(); var ignore = new CircleTransformation(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
private void SetImageBorder(string borderColor) { var transformation = new CircleTransformation { BorderHexColor = borderColor }; switch (Device.RuntimePlatform) { case Xamarin.Forms.Device.iOS: transformation.BorderSize = 30; break; default: transformation.BorderSize = 20; break; } Photo.Transformations.Add(transformation); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); global::Rg.Plugins.Popup.Popup.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.SetFlags("FastRenderers_Experimental"); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); global::FFImageLoading.Forms.Droid.CachedImageRenderer.Init(enableFastRenderer: true); global::FFImageLoading.ImageService.Instance.Initialize(new FFImageLoading.Config.Configuration() { Logger = new Valuta.Services.DebugLogger() }); global::Acr.UserDialogs.UserDialogs.Init(this); var plz = new CircleTransformation(); var linker = typeof(SvgCachedImage); RestClient.Init(new Services.DroidMessageHandlerFactory()); LoadApplication(new App(new AndroidInitializer())); }
public App() { try { InitializeComponent(); var ignore = new CircleTransformation(); FlowListView.Init(); TodoManager = new TodoItemManager(new HTTPService()); DatabaseManager = new Service.DatabaseManager(new DatabaseService()); MainPage = new HanselmanNavigationPage(new Views.SelectionPage()); var isExist = CredentialsService.DoCredentialsExist(); if (isExist) { var account = CredentialsService.GetAccount(); var data = JsonConvert.DeserializeObject <Member>(account.Properties["Member"]); App.LoginResponse = data; if (App.LoginResponse == null) { LoginResponse = new Models.LoginResponse.Member(); TrainerData = new Models.LoginResponse.Member(); CredentialsService.DeleteCredentials(); MainPage = new HanselmanNavigationPage(new Views.SelectionPage()); return; } if (App.LoginResponse.Email.Equals(null)) { CredentialsService.DeleteCredentials(); } App.SelectedView = account.Properties["UserType"]; if (account.Properties.ContainsKey("FacebookUser")) { var fbData = JsonConvert.DeserializeObject <FacebookUser>(account.Properties["FacebookUser"]); App.FacebookUser = fbData; } if (account.Properties.ContainsKey("InstagramUser")) { var instaData = JsonConvert.DeserializeObject <InstagramUser>(account.Properties["InstagramUser"]); App.InstagramUser = instaData; } //if (account.Properties.ContainsKey("InstgramMedia")) //{ // var instaMedia = JsonConvert.DeserializeObject<InstagramMedia>(account.Properties["InstgramMedia"]); // App.InstagramMedia = instaMedia; //} MainPage = new NavigationPage(new RootPage(App.SelectedView)); } else { LoginResponse = new Models.LoginResponse.Member(); TrainerData = new Models.LoginResponse.Member(); } //FacebookProfile = new Models.FacebookProfile(); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.ToString()); CredentialsService.DeleteCredentials(); MainPage = new HanselmanNavigationPage(new Views.SelectionPage()); } }
protected override void OnCreate(Bundle bundle) { try { FormsAppCompatActivity.ToolbarResource = Resource.Layout.Toolbar; FormsAppCompatActivity.TabLayoutResource = Resource.Layout.Tabs; base.OnCreate(bundle); if (Settings.BuginAndroidAutoresize) { this.Window.AddFlags(WindowManagerFlags.Fullscreen); this.Window.AddFlags(WindowManagerFlags.KeepScreenOn); Window.SetSoftInputMode(SoftInput.AdjustResize); if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop) { // Bug in Android 5+, this is an adequate workaround AndroidBug5497WorkaroundForXamarinAndroid.assistActivity(this, WindowManager); } } if (Settings.TurnFullScreenOn) { this.Window.AddFlags(WindowManagerFlags.Fullscreen); this.Window.AddFlags(WindowManagerFlags.KeepScreenOn); } if (Settings.TurnSecurityProtocolType3072On) { ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; HttpClient client = new HttpClient(new Xamarin.Android.Net.AndroidClientHandler()); } if (Settings.TurnTrustFailureOn_WebException) { //If you are Getting this error >>> System.Net.WebException: Error: TrustFailure /// then Set it to true System.Net.ServicePointManager.ServerCertificateValidationCallback += (o, certificate, chain, errors) => true; System.Security.Cryptography.AesCryptoServiceProvider b = new System.Security.Cryptography.AesCryptoServiceProvider(); } CachedImageRenderer.Init(); var ignore = new CircleTransformation(); var assembliesToInclude = new List <Assembly>() { typeof(CachedImage).GetTypeInfo().Assembly, typeof(CachedImageRenderer).GetTypeInfo().Assembly }; AndroidClipboardManager = (ClipboardManager)GetSystemService(ClipboardService); var container = new SimpleContainer(); container.Register <IDevice>(t => AndroidDevice.CurrentDevice); container.Register <IGeolocator, Geolocator>(); Resolver.ResetResolver(); Resolver.SetResolver(container.GetResolver()); CrossMedia.Current.Initialize(); ImageCircleRenderer.Init(); UserDialogs.Init(this); global::Xamarin.Forms.Forms.Init(this, bundle); AndroidAppLinks.Init(this); var data = Intent?.Data?.EncodedAuthority.ToString(); //Uri data = getIntent().getData(); //String scheme = data.getScheme(); // "http" //String host = data.getHost(); // "twitter.com" //List < String > params = data.getPathSegments(); //String first = params.get(0); // "status" //String second = params.get(1); // "1234" LoadApplication(new App()); } catch (Exception ex) { } }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { XfxControls.Init(); ButtonCircle.FormsPlugin.iOS.ButtonCircleRenderer.Init(); UINavigationBar.Appearance.TintColor = Color.White.ToUIColor(); global::Xamarin.Forms.Forms.Init(); Firebase.Core.App.Configure(); KeyboardOverlapRenderer.Init(); DependencyService.Register <ToastNotification>(); // Register your dependency ToastNotification.Init(); FFImageLoading.Forms.Touch.CachedImageRenderer.Init(); var ignore = new CircleTransformation(); //CarouselViewRenderer.Init(); DependencyService.Register <IGoogleManager, GoogleManager>(); DependencyService.Register <IFacebookManager, FacebookManager>(); var googleServiceDictionary = NSDictionary.FromFile("GoogleService-Info.plist"); SignIn.SharedInstance.ClientID = googleServiceDictionary["CLIENT_ID"].ToString(); FormsMaps.Init(); Rg.Plugins.Popup.Popup.Init(); LoadApplication(new App()); //var statusBar = UIApplication.SharedApplication.ValueForKey(new NSString("statusBar")) as UIView; //if (statusBar.RespondsToSelector(new ObjCRuntime.Selector("setBackgroundColor:"))) //{ // statusBar.BackgroundColor = UIColor.White; // statusBar.TintColor = UIColor.White; //} ImageCircle.Forms.Plugin.iOS.ImageCircleRenderer.Init(); //FirebasePushNotificationManager.Initialize(options, new NotificationUserCategory[] //{ // new NotificationUserCategory("message",new List<NotificationUserAction> { // new NotificationUserAction("Reply","Reply",NotificationActionType.Foreground) // }), // new NotificationUserCategory("request",new List<NotificationUserAction> { // new NotificationUserAction("Accept","Accept"), // new NotificationUserAction("Reject","Reject",NotificationActionType.Destructive) // }) //}); // Register your app for remote notifications. if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0)) { // iOS 10 or later var authOptions = UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound; UNUserNotificationCenter.Current.RequestAuthorization(authOptions, (granted, error) => { Console.WriteLine(granted); }); // For iOS 10 display notification (sent via APNS) UNUserNotificationCenter.Current.Delegate = this; // For iOS 10 data message (sent via FCM) Messaging.SharedInstance.RemoteMessageDelegate = this; } else { // iOS 9 or before var allNotificationTypes = UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound; var settings = UIUserNotificationSettings.GetSettingsForTypes(allNotificationTypes, null); UIApplication.SharedApplication.RegisterUserNotificationSettings(settings); } UIApplication.SharedApplication.RegisterForRemoteNotifications(); return(base.FinishedLaunching(app, options)); }
public CircleCachedImage() { _transformation = new CircleTransformation(BorderSize * DeviceDisplay.MainDisplayInfo.Density, BorderColor.ToHex()); base.Transformations.Add(_transformation); }
protected override void OnCreate(Bundle bundle) { try { FormsAppCompatActivity.ToolbarResource = Resource.Layout.Toolbar; FormsAppCompatActivity.TabLayoutResource = Resource.Layout.Tabbar; base.OnCreate(bundle); if (Settings.TurnFullScreenOn) { this.Window.AddFlags(WindowManagerFlags.Fullscreen); this.Window.AddFlags(WindowManagerFlags.KeepScreenOn); } if (Settings.TurnSecurityProtocolType3072On) { ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; HttpClient client = new HttpClient(new Xamarin.Android.Net.AndroidClientHandler()); } if (Settings.TurnTrustFailureOn_WebException) { //If you are Getting this error >>> System.Net.WebException: Error: TrustFailure /// then Set it to true System.Net.ServicePointManager.ServerCertificateValidationCallback += (o, certificate, chain, errors) => true; System.Security.Cryptography.AesCryptoServiceProvider b = new System.Security.Cryptography.AesCryptoServiceProvider(); } //Methods =>> Copy the text AndroidClipboardManager = (ClipboardManager)GetSystemService(ClipboardService); CachedImageRenderer.Init(); var ignore = new CircleTransformation(); var assembliesToInclude = new List <Assembly>() { typeof(CachedImage).GetTypeInfo().Assembly, typeof(CachedImageRenderer).GetTypeInfo().Assembly }; SegmentedControlRenderer.Init(); PullToRefreshLayoutRenderer.Init(); FFImageLoading.Forms.Droid.CachedImageRenderer.Init(); global::Xamarin.Forms.Forms.Init(this, bundle); try { var activity = Xamarin.Forms.Forms.Context; File httpCacheDir = new File(activity.CacheDir, "http"); long httpCacheSize = 10 * 1024 * 1024; // 10 MiB HttpResponseCache.Install(httpCacheDir, httpCacheSize); } catch (IOException ce) { } UserDialogs.Init(this); MobileAds.Initialize(ApplicationContext, Settings.Ad_Unit_ID); FormsWebViewRenderer.Initialize(); LoadApplication(new App()); } catch (Exception e) { Console.WriteLine(e); } }