Eduardo Curado
Eduardo Curado

Reputation: 21

Xamarin.Forms WebChromeClient


The point is, I need to do this in Xamarin.Forms:

Android.Webkit.WebView teste = FindViewById<Android.Webkit.WebView>(Resource.Id.navigation);
            teste.SetWebChromeClient(new WebChromeClient());
            teste.Settings.JavaScriptEnabled = true;
            teste.LoadUrl("url");

butI using Xamarin.Forms, any one knows how to do this?

Just to explain, I try to create WebView in Xamarin.Forms that use the chrome and no the native browser to view my WebSite. Please, if any can help with example!

Upvotes: 2

Views: 5472

Answers (1)

Marius Junak
Marius Junak

Reputation: 1213

I just took a look at the WebViewRenderer implementation and it seems like the Xamarin.Forms WebViewRenderer is also using a normal WebChromeClient.

You can look for yourself here and here.

So your problem seems to be another one.

Upvotes: 6

Related Questions