protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Forms.Init(this, bundle); FormsVideoPlayer.Init(); LoadApplication(new App()); }
protected override void OnCreate(Bundle savedInstanceState) { _iocConfig = new AndroidIoCConfig(this); TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; var pixelWidth = (double)Resources.DisplayMetrics.WidthPixels; var pixelHeight = (double)Resources.DisplayMetrics.HeightPixels; var density = (double)Resources.DisplayMetrics.Density; App.MainPageScreenWidth = (double)((pixelWidth - 0.5f) / density); App.MainPageScreenHeight = (double)((pixelHeight - 0.5f) / density); App.Locator = new ViewModelLocator(_iocConfig); base.SetTheme(Resource.Style.MainTheme); base.OnCreate(savedInstanceState); Rg.Plugins.Popup.Popup.Init(this, savedInstanceState); Forms.SetFlags("IndicatorView_Experimental"); Forms.SetFlags("CollectionView_Experimental"); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); CarouselViewRenderer.Init(); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(enableFastRenderer: false); ImageCircleRenderer.Init(); UserDialogs.Init(this); FormsVideoPlayer.Init(); XF.Material.Droid.Material.Init(this, savedInstanceState); CrossCurrentActivity.Current.Init(this, savedInstanceState); 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) { FFImageLoading.Forms.Platform.CachedImageRenderer.Init(); global::Xamarin.Forms.Forms.Init(); SfBorderRenderer.Init(); SfButtonRenderer.Init(); LoadApplication(new App()); Firebase.Core.App.Configure(); FormsVideoPlayer.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) }) }); CrossFirebasePushNotification.Current.OnNotificationReceived += (s, p) => { FirebasePushNotificationManager.CurrentNotificationPresentationOption = UNNotificationPresentationOptions.Alert | UNNotificationPresentationOptions.Badge; }; return(base.FinishedLaunching(app, options)); }
/// <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); FormsVideoPlayer.Init(); 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); CurrentActivity = this; Forms.Init(this, bundle); CurrentPlatform.Init(); App.Init(this); new SfRatingRenderer(); new SfCalendarRenderer(); ZXing.Net.Mobile.Forms.Android.Platform.Init(); UserDialogs.Init(() => this); FormsVideoPlayer.Init(); LoadApplication(new App()); try { // Check to ensure everything's setup right GcmClient.CheckDevice(this); GcmClient.CheckManifest(this); // Register for push notifications Debug.WriteLine("Registering..."); GcmClient.Register(this, PushHandlerBroadcastReceiver.SENDER_IDS); } catch (MalformedURLException) { CreateAndShowDialog("There was an error creating the client. Verify the URL.", "Error"); } catch (System.Exception e) { CreateAndShowDialog(e.Message, "Error"); } }
// // 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()); FormsVideoPlayer.Init(); return(base.FinishedLaunching(app, options)); }
public void NoLicenseKeyPassedToInit() { FormsVideoPlayer.Init(); Assert.IsTrue(FormsVideoPlayer.IsInitialized, "FormsVideoPlayer.IsInitialized"); Assert.AreEqual(VideoPlayerLicense.LicenseType, LicenseType.Trial, "License should be in trial mode."); }
public void InvalidLicenseKeyPassedToInit() { var licenseKey = "07C54D83E0CC806F017B369D33E755E8253E8F95"; Assert.Catch <VideoPlayerLicenseException>(() => FormsVideoPlayer.Init(licenseKey), "FormsVideoPlayer.Init(licenseKey)"); Assert.IsFalse(FormsVideoPlayer.IsInitialized, "FormsVideoPlayer.IsInitialized"); Assert.AreEqual(VideoPlayerLicense.LicenseType, LicenseType.Trial, "License should be in trial mode."); }
protected override async void OnCreate(Bundle savedInstanceState) { // 16.4.0.54 //Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("MTM5OTI0QDMxMzYyZTM0MmUzMGM1OEFZTGR0VjdUZUw1RWl2WEJZSzBqQmRjMldPVzRkMFM2VGtRVGR2dkk9"); // 17.2.0.34 Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("MTM5OTIzQDMxMzcyZTMyMmUzMGhGNUZBVnh1T3RBVFlBT0xpeHlrT01rRVRNSk1RMFgxbENSZlJWc0FxbjQ9"); TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); await CrossMedia.Current.Initialize(); Plugin.CurrentActivity.CrossCurrentActivity.Current.Activity = this; //Plugin.CurrentActivity.CrossCurrentActivity.Current.Activity.Init(this, savedInstanceState); //VideoViewRenderer.Init(); Rg.Plugins.Popup.Popup.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.SetFlags("Shell_Experimental", "Visual_Experimental", "CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); global::Xamarin.Auth.Presenters.XamarinAndroid.AuthenticationConfiguration.Init(this, savedInstanceState); //LoadApplication(new App()); Stormlion.PhotoBrowser.Droid.Platform.Init(this); App.ScreenWidth = Resources.DisplayMetrics.WidthPixels / Resources.DisplayMetrics.Density; App.ScreenHeight = Resources.DisplayMetrics.HeightPixels / Resources.DisplayMetrics.Density; string dbPath = FileAccessHelper.GetLocalFilePath("owner_city.db"); FormsVideoPlayer.Init(); FirebaseApp.InitializeApp(this); try { await Task.Run(() => { var preferenceToken = Preferences.Get(Constants.DEVICE_TOKEN, ""); if (preferenceToken.Equals("")) { FirebaseInstanceId.Instance.DeleteInstanceId(); } }); } catch { } Plugin.InputKit.Platforms.Droid.Config.Init(this, savedInstanceState); LoadApplication(new App(dbPath)); RequestedOrientation = ScreenOrientation.Portrait; }
public void ValidLicenseKeyPassedToInit() { var licenseKey = "5C67C48C3C6B0E084EB9760E94F9E4C65417C6C1"; FormsVideoPlayer.Init(licenseKey); Assert.IsTrue(FormsVideoPlayer.IsInitialized, "FormsVideoPlayer.IsInitialized"); Assert.AreEqual(VideoPlayerLicense.LicenseType, LicenseType.Full, "License should be in full mode."); }
// // 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) { Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental"); Xamarin.Forms.Forms.Init(); FormsVideoPlayer.Init(); 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) { FFImageLoading.Forms.Platform.CachedImageRenderer.Init(); global::Xamarin.Forms.Forms.Init(); FormsVideoPlayer.Init(); 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) { global::Xamarin.Forms.Forms.Init(); FormsVideoPlayer.Init(); LoadApplication(new App(new IosInitialized())); Forms.SetFlags("IndicatorView_Experimental"); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(); return(base.FinishedLaunching(app, options)); }
public void ValidLicenseKeyPassedToInit() { var licenseKey = "AB0FAF4003456ECFE1F606BB343AA306D3D153E9"; FormsVideoPlayer.Init(licenseKey); Assert.IsTrue(FormsVideoPlayer.IsInitialized, "FormsVideoPlayer.IsInitialized"); Assert.AreEqual(VideoPlayerLicense.LicenseType, LicenseType.Full, "License should be in full mode."); }
public void ValidLicenseKeyPassedToInit() { var licenseKey = "C79CA697B72791E4736758C520B92146945ECED1"; FormsVideoPlayer.Init(licenseKey); Assert.IsTrue(FormsVideoPlayer.IsInitialized, "FormsVideoPlayer.IsInitialized"); Assert.AreEqual(VideoPlayerLicense.LicenseType, LicenseType.Full, "License should be in full mode."); }
// // 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.SetFlags("CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(); FormsVideoPlayer.Init(); FlowListView.Init(); LoadApplication(new App(mediaService)); 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(); Xamarin.FormsGoogleMaps.Init(AppConstants.GOOGLE_API_ACCESS_KEY); Rg.Plugins.Popup.Popup.Init(); FormsVideoPlayer.Init(); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
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); FormsVideoPlayer.Init(); 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); FormsVideoPlayer.Init(); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); global::Xamarin.Forms.Forms.Init(this, bundle); FormsVideoPlayer.Init("F6EF91E524643F000F83A2947E8A29E3445871CD"); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(bundle); FormsVideoPlayer.Init(); global::Xamarin.Forms.Forms.Init(this, bundle); 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(); FormsVideoPlayer.Init("284E0CDFCB86FC909C2AE54EB451E39B29A78ECE"); LoadApplication(new App()); return(base.FinishedLaunching(app, options)); }
public void IsInitializedStateChangesWhenCallingInit() { var initializedBeforeCallingInit = FormsVideoPlayer.IsInitialized; FormsVideoPlayer.Init(); var initializedAfterCallingInit = FormsVideoPlayer.IsInitialized; Assert.IsFalse(initializedBeforeCallingInit); Assert.IsTrue(initializedAfterCallingInit); Assert.AreEqual(VideoPlayerLicense.LicenseType, LicenseType.Trial); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental"); Xamarin.Essentials.Platform.Init(this, savedInstanceState); Xamarin.Forms.Forms.Init(this, savedInstanceState); FormsVideoPlayer.Init(); LoadApplication(new App()); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); Forms.Init(this, savedInstanceState); FormsVideoPlayer.Init(); Rg.Plugins.Popup.Popup.Init(this, savedInstanceState); 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; base.OnCreate(savedInstanceState); Acr.UserDialogs.UserDialogs.Init(this); Xamarin.Essentials.Platform.Init(this, savedInstanceState); FFImageLoading.Forms.Platform.CachedImageRenderer.Init(true); Xamarin.Forms.Forms.Init(this, savedInstanceState); FormsVideoPlayer.Init(); 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); CachedImageRenderer.Init(true); FormsVideoPlayer.Init(); CrossCurrentActivity.Current.Activity = this; Rg.Plugins.Popup.Popup.Init(this, bundle); LoadApplication(new App()); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); Forms.Init(this, bundle); FormsVideoPlayer.Init(); Forms.ViewInitialized += (sender, e) => { if (!string.IsNullOrWhiteSpace(e.View.StyleId)) { e.NativeView.ContentDescription = e.View.StyleId; } }; LoadApplication(new App()); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); Forms.SetFlags("CollectionView_Experimental"); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); UserDialogs.Init(() => this); FlowListView.Init(); Android.Glide.Forms.Init(this); FormsVideoPlayer.Init(); LoadApplication(new App(mediaService)); }
protected override void OnCreate(Bundle savedInstanceState) { TabLayoutResource = Resource.Layout.Tabbar; ToolbarResource = Resource.Layout.Toolbar; base.OnCreate(savedInstanceState); CrossCurrentActivity.Current.Init(this, savedInstanceState); Rg.Plugins.Popup.Popup.Init(this, savedInstanceState); Xamarin.Essentials.Platform.Init(this, savedInstanceState); global::Xamarin.Forms.Forms.Init(this, savedInstanceState); Xamarin.FormsGoogleMaps.Init(this, savedInstanceState); FormsVideoPlayer.Init(); GetPermissions(); LoadApplication(new App()); }