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.
20 lines
470 B
20 lines
470 B
using Android.Webkit;
|
|
|
|
namespace Demo.Droid.Infrastructure
|
|
{
|
|
public class JavascriptWebViewClient : WebViewClient
|
|
{
|
|
string _javascript;
|
|
|
|
public JavascriptWebViewClient(string javascript)
|
|
{
|
|
_javascript = javascript;
|
|
}
|
|
|
|
public override void OnPageFinished(WebView view, string url)
|
|
{
|
|
base.OnPageFinished(view, url);
|
|
view.EvaluateJavascript(_javascript, null);
|
|
}
|
|
}
|
|
} |