| 123456789101112131415161718192021222324252627282930 | using Avalonia;using Foundation;using Avalonia.iOS;using InABox.Avalonia.Platform;using InABox.Avalonia.Platform.iOS;namespace PRS.DigitalKey.iOS;// 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")]#pragma warning disable CA1711 // Identifiers should not have incorrect suffixpublic partial class AppDelegate : AvaloniaAppDelegate<App>#pragma warning restore CA1711 // Identifiers should not have incorrect suffix{    protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)    {                PlatformTools.Register<IDeviceId, iOS_DeviceId>();        PlatformTools.Register<IAppVersion,iOS_AppVersion>();        PlatformTools.Register<IImageTools, iOS_ImageTools>();        PlatformTools.Register<IPdfRenderer, iOS_PdfRenderer>();        PlatformTools.Register<IBluetooth, iOS_Bluetooth>();                return base.CustomizeAppBuilder(builder)            //.With(new iOSPlatformOptions { RenderingMode = [iOSRenderingMode.OpenGl] })            .WithInterFont();    }}
 |