AppDelegate.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #region Copyright notice and license
  2. // Copyright 2020 The gRPC Authors
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. #endregion
  16. using System;
  17. using System.Collections.Generic;
  18. using System.Linq;
  19. using Foundation;
  20. using UIKit;
  21. namespace HelloworldXamarin.iOS
  22. {
  23. // The UIApplicationDelegate for the application. This class is responsible for launching the
  24. // User Interface of the application, as well as listening (and optionally responding) to
  25. // application events from iOS.
  26. [Register("AppDelegate")]
  27. public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
  28. {
  29. //
  30. // This method is invoked when the application has loaded and is ready to run. In this
  31. // method you should instantiate the window, load the UI into it and then make the window
  32. // visible.
  33. //
  34. // You have 17 seconds to return from this method, or iOS will terminate your application.
  35. //
  36. public override bool FinishedLaunching(UIApplication app, NSDictionary options)
  37. {
  38. global::Xamarin.Forms.Forms.Init();
  39. LoadApplication(new App());
  40. return base.FinishedLaunching(app, options);
  41. }
  42. }
  43. }