Advertisement
hackerferret

EventProMobile.IOS AppDelegate

May 3rd, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.29 KB | None | 0 0
  1. using System.Diagnostics;
  2. using EventProApp.iOS;
  3. using FFImageLoading.Forms.Touch;
  4. using Foundation;
  5. using UIKit;
  6.  
  7. namespace EventProMobile.iOS
  8. {
  9.     [Register("AppDelegate")]
  10.     public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
  11.     {
  12.         public override bool FinishedLaunching(UIApplication app, NSDictionary options)
  13.         {
  14.             try
  15.             {
  16.  
  17.                 Xamarin.Forms.Forms.Init();
  18.  
  19.                 // Code for starting up the Xamarin Test Cloud Agent
  20. #if ENABLE_TEST_CLOUD
  21.                 Xamarin.Calabash.Start();
  22. #endif
  23.                 Appearance.Configure();
  24.                 CachedImageRenderer.Init();
  25.                 //MobileCenter.Configure("Derp-Derp-Derp-Derp");
  26.                 EventProMobile.App.Logger.Write("Test", Splat.LogLevel.Debug);
  27.                 var formsApp = new EventProMobile.App();
  28.  
  29.                 Debug.Assert(formsApp != null,"App should not be null after instantiation.");
  30.  
  31.                 LoadApplication(formsApp);
  32.  
  33.                 return base.FinishedLaunching(app, options);
  34.             }
  35.             catch (System.Exception ex)
  36.             {
  37.                 Debug.Write($"Error on FinishedLaunching: {ex.Message}");
  38.                 throw ex;
  39.             }
  40.  
  41.         }
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement