public static T UseAndroid <T>(this T builder) where T : AppBuilderBase <T>, new() { var options = AvaloniaLocator.Current.GetService <AndroidPlatformOptions>() ?? new AndroidPlatformOptions(); builder.UseWindowingSubsystem(() => AndroidPlatform.Initialize(builder.ApplicationType, options), "Android"); builder.UseSkia(); return(builder); }
protected override void OnCreate(Bundle bundle) { base.OnCreate(bundle); AndroidPlatform.Initialize(); // Iconize Iconize.With(new MaterialModule()); //IconControls.Init(); // ZXing ZXingPlatform.Init(); MobileBarcodeScanner.Initialize(Application); // Xamarin bootstrap Xamarin.Forms.Forms.Init(this, bundle); LoadApplication(new AndroidApp { MainActivity = this }); }
public static T UseAndroid <T>(this T builder) where T : AppBuilderBase <T>, new() { return(builder .UseWindowingSubsystem(() => AndroidPlatform.Initialize(), "Android") .UseSkia()); }