sharee.bike-App/Meinkonrad/TINK.iOS/AppDelegate.cs

50 lines
1.9 KiB
C#
Raw Normal View History

2022-01-04 18:54:03 +01:00
using Foundation;
2021-11-07 19:42:59 +01:00
using UIKit;
using Xamarin.Forms;
2022-08-30 15:42:25 +02:00
using Xamarin.Forms.Platform.iOS;
2021-11-07 19:42:59 +01:00
namespace TINK.iOS
{
2022-09-06 16:08:19 +02:00
// The UIApplicationDelegate for the application. This class is responsible for launching the
// User Interface of the application, as well as listening (and optionally responding) to
// application events from iOS.
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
{
//
// 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();
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
//Color of Icons in Navigation bar (e.g. burger menu and back arrow)
UINavigationBar.Appearance.TintColor = Color.White.ToUIColor();
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
new iOS.Device.AppInfo(NSBundle.MainBundle.InfoDictionary[new NSString("CFBundleShortVersionString")]?.ToString() ?? string.Empty);
2022-08-30 15:42:25 +02:00
2022-09-06 16:08:19 +02:00
Forms.ViewInitialized += (object sender, ViewInitializedEventArgs e) =>
{
// http://developer.xamarin.com/recipes/testcloud/set-accessibilityidentifier-ios/
if (null != e.View.AutomationId)
{
e.NativeView.AccessibilityIdentifier = e.View.AutomationId;
}
};
LoadApplication(new TINK.App());
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
// Required for initialization of Maps, see https://developer.xamarin.com/guides/xamarin-forms/user-interface/map/
Xamarin.FormsGoogleMaps.Init("000000000000000000000000000000000000000");
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
// Required for initialization of binding package, see https://github.com/nuitsjp/Xamarin.Forms.GoogleMaps.Bindings.
Xamarin.FormsGoogleMapsBindings.Init();
2021-11-07 19:42:59 +01:00
2022-09-06 16:08:19 +02:00
return base.FinishedLaunching(app, options);
}
}
2021-11-07 19:42:59 +01:00
}