Yes. It is possible. If you are targeting KitKat or higher, you can use:
webView.EvaluateJavascript("enable();", null);
Where in this case enable(); - JS function.
If you use lower API levels, you can use LoadUrl(); :
webView.LoadUrl("javascript:enable();");
EDIT:
The error you get where it complains about LoadUrl is due to the fact that for some reason it occurs in a thread other than the UI.
Since you've already passed through Context to your JavascriptInterface class, you can simply wrap the contents of ShowToast in:
context.RunOnUiThread(() => { // stuff here });
Just change the signature from Context to Activity , and it will help you redirect you to the UI thread.
source share