You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
693 B

  1. using Android.App;
  2. using Android.Runtime;
  3. namespace HybridApp
  4. {
  5. [Application(UsesCleartextTraffic = true)]
  6. public class MainApplication : MauiApplication
  7. {
  8. public MainApplication(IntPtr handle, JniHandleOwnership ownership)
  9. : base(handle, ownership)
  10. {
  11. }
  12. protected override MauiApp CreateMauiApp()
  13. {
  14. //Microsoft.Maui.Handlers.WebViewHandler.Mapper.ModifyMapping(
  15. // nameof(Android.Webkit.WebView.WebChromeClient),
  16. // (handler, view, args) => handler.PlatformView.SetWebChromeClient(new MyWebChromeClient(handler)));
  17. return MauiProgram.CreateMauiApp();
  18. }
  19. }
  20. }