Main.cs 623 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using Foundation;
  5. using UIKit;
  6. namespace XamarinInsights.iOS
  7. {
  8. public class Application
  9. {
  10. // This is the main entry point of the application.
  11. //TODO: set api key
  12. static void Main (string[] args)
  13. {
  14. if (string.IsNullOrEmpty (App.InsightsApiKey))
  15. throw new Exception ("A Xamarin Insights Api key is required");
  16. Xamarin.Insights.Initialize (App.InsightsApiKey);
  17. // if you want to use a different Application Delegate class from "AppDelegate"
  18. // you can specify it here.
  19. UIApplication.Main (args, null, "AppDelegate");
  20. }
  21. }
  22. }