public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); Syncfusion.XForms.iOS.Border.SfBorderRenderer.Init(); Syncfusion.XForms.iOS.Buttons.SfButtonRenderer.Init(); Syncfusion.SfGauge.XForms.iOS.SfGaugeRenderer.Init(); CachedImageRenderer.Init(); ImageCarouselRenderer.Init(); new SfRotatorRenderer(); if (UIDevice.CurrentDevice.CheckSystemVersion(10, 0)) { // Ask the user for permission to get notifications on iOS 10.0+ UNUserNotificationCenter.Current.RequestAuthorization( UNAuthorizationOptions.Alert | UNAuthorizationOptions.Badge | UNAuthorizationOptions.Sound, (approved, error) => { }); } else if (UIDevice.CurrentDevice.CheckSystemVersion(8, 0)) { // Ask the user for permission to get notifications on iOS 8.0+ var settings = UIUserNotificationSettings.GetSettingsForTypes( UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, new NSSet()); UIApplication.SharedApplication.RegisterUserNotificationSettings(settings); } 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(); ImageCarouselRenderer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
protected override async void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); var platformConfig = new PlatformConfig { BitmapDescriptorFactory = new AccessNativeBitmapConfig() }; global::Xamarin.Forms.Forms.SetFlags("CarouselView_Experimental"); Xamarin.FormsGoogleMaps.Init(this, savedInstanceState, platformConfig); await CrossMedia.Current.Initialize(); ImageCircleRenderer.Init(); ImageCarouselRenderer.Init(); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); global::Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); CachedImageRenderer.Init(true); var ignore = typeof(SvgCachedImage); Delegate.SetLocalNightMode(AppCompatDelegate.ModeNightNo); FirebaseOptions options = new FirebaseOptions.Builder() .SetApplicationId("1:497356794783:android:f50ef84b369d3a3e696baa") .SetApiKey("AIzaSyBCZCjGqk3f0SdH7prNkEEQT-SI29-vxG0") .SetGcmSenderId("497356794783") .Build(); bool hasBeenInitialized = false; IList <FirebaseApp> firebaseApps = FirebaseApp.GetApps(Application.Context); foreach (FirebaseApp app in firebaseApps) { if (app.Name.Equals(FirebaseApp.DefaultAppName)) { hasBeenInitialized = true; FirebaseApp firebaseApp = app; } } if (!hasBeenInitialized) { FirebaseApp firebaseApp = FirebaseApp.InitializeApp(Application.Context, options); } //SetContentView(Resource.Layout.MasterPage); IsPlayServicesAvailable(); //You can use this method to check if play services are available. CreateNotificationChannel(); LoadApplication(new App()); FirebasePushNotificationManager.ProcessIntent(this, Intent); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); ImageCarouselRenderer.Init(); LoadApplication(new App()); }
// This is the main entry point of the application. static void Main(string[] args) { // if you want to use a different Application Delegate class from "AppDelegate" // you can specify it here. CachedImageRenderer.Init(); CachedImageRenderer.InitImageSourceHandler(); ImageCarouselRenderer.Init(); UIApplication.Main(args, null, "AppDelegate"); }
// // 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()); ImageCarouselRenderer.Init(); //global::Xamarin.Forms.Forms.SetFlags("Visual_Experimental"); // ONLY if using a pre-release of Xamarin.Forms //global::Xamarin.Forms.Forms.Init(); global::Xamarin.Forms.FormsMaterial.Init(); return(base.FinishedLaunching(app, options)); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); ImageCarouselRenderer.Init(); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); LoadApplication(new App()); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; CrossCurrentActivity.Current.Init(this, savedInstanceState); base.OnCreate(savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); FormsMaterial.Init(this, savedInstanceState); LoadApplication(new App()); ImageCarouselRenderer.Init(); //global::Xamarin.Forms.Forms.SetFlags("Visual_Experimental"); // ONLY if using a pre-release of Xamarin.Forms }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); ImageCarouselRenderer.Init(); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); XF.Material.Droid.Material.Init(this, savedInstanceState); global::Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState); global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, savedInstanceState); CustomTabsConfiguration.CustomTabsClosingMessage = null; LoadApplication(new App()); }
protected override void OnCreate(Bundle savedInstanceState) { ImageCarouselRenderer.Init(); TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); string dbPath = FileAccessHelper.GetLocalFilePath("people.db3"); LoadApplication(new App()); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; DependencyService.Register <QrScanningService>(); MobileBarcodeScanner.Initialize(Application); ImageCarouselRenderer.Init(); base.OnCreate(savedInstanceState); global::Xamarin.Forms.Forms.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); LoadApplication(new App()); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); //Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental"); Xamarin.Forms.Forms.SetFlags(new string[] { "CarouselView_Experimental", "IndicatorView_Experimental" }); ImageCarouselRenderer.Init(); Rg.Plugins.Popup.Popup.Init(this, savedInstanceState); RequestPermissions(permissionGroup, 0); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); CachedImageRenderer.Init(enableFastRenderer: true); CachedImageRenderer.InitImageViewHandler(); CardsViewRenderer.Preserve(); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { Rg.Plugins.Popup.Popup.Init(this, bundle); CachedImageRenderer.Init(enableFastRenderer: true); CachedImageRenderer.InitImageViewHandler(); TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; ImageCarouselRenderer.Init(); base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); Syncfusion.XForms.Android.PopupLayout.SfPopupLayoutRenderer.Init(); LoadApplication(new App()); }
//Image image1; //internal static MainActivity Instance { get; private set; } protected override void OnCreate(Bundle savedInstanceState) { //Instance = this; 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); TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; App.ScreenHeight = (int)(Resources.DisplayMetrics.HeightPixels / Resources.DisplayMetrics.Density); App.ScreenWidth = (int)(Resources.DisplayMetrics.WidthPixels / Resources.DisplayMetrics.Density); CrossCurrentActivity.Current.Init(this, savedInstanceState); ImageCarouselRenderer.Init(); base.OnCreate(savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); var config = new PayPalConfiguration(PayPalEnvironment.NoNetwork, "*****@*****.**") { //If you want to accept credit cards AcceptCreditCards = false, //Your business name MerchantName = "Olive", //Your privacy policy Url MerchantPrivacyPolicyUri = "https://www.example.com/privacy", //Your user agreement Url MerchantUserAgreementUri = "https://www.example.com/legal", // OPTIONAL - ShippingAddressOption (Both, None, PayPal, Provided) ShippingAddressOption = ShippingAddressOption.Both, // OPTIONAL - Language: Default languege for PayPal Plug-In Language = "gb", // OPTIONAL - PhoneCountryCode: Default phone country code for PayPal Plug-In PhoneCountryCode = "+44", }; CrossPayPalManager.Init(config, this); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); string dbName = "app_db.sqlite"; string folderPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal); string fullPath = Path.Combine(folderPath, dbName); global::Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new App(new AndroidInitializer(), fullPath)); ImageCarouselRenderer.Init(); //CarouselViewRenderer.Init(); CachedImageRenderer.Init(true); //Aurora.ComponentLoader.Init("PCUXVI7yJwkBVAXzLBtaC0+1V6X3jZsD9/01xOBBoXY8n16e83pdx0S3umX7DXg/HRo2LUvTAUGCb55qKqgSZLEMQmS213miUOVSsfDWL60yyKj/1RtsgUQpyOrNw8fiCsFa2jKVBskq8QC7/P612nQUVcAOruKdmOoTZJrSe6U="); // LoadApplication(new App(fullPath)); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); FacebookClientManager.Initialize(this); //Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental"); Xamarin.Forms.Forms.SetFlags(new string[] { "CarouselView_Experimental", "IndicatorView_Experimental" }); ImageCarouselRenderer.Init(); Rg.Plugins.Popup.Popup.Init(this, savedInstanceState); RequestPermissions(permissionGroup, 0); Xamarin.FormsMaps.Init(this, savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); Plugin.CurrentActivity.CrossCurrentActivity.Current.Activity = this; CachedImageRenderer.Init(enableFastRenderer: true); CachedImageRenderer.InitImageViewHandler(); CardsViewRenderer.Preserve(); if (ContextCompat.CheckSelfPermission(this, Manifest.Permission.RecordAudio) != Permission.Granted) { ActivityCompat.RequestPermissions(this, new String[] { Manifest.Permission.RecordAudio }, 1); } LoadApplication(new App(new OAuth2Service())); }
private void InitControls() { CarouselViewRenderer.Init(); ImageCarouselRenderer.Init(); FlowListView.Init(); }