How to evaluate javascript in Xamarin.Android/Monodroid and retrieve result?

假装没事ソ 提交于 2019-12-11 07:14:48

问题


For Xamarin.iOS/Monotouch it is simple to retrieve a string when evaluating javascript.

e.g.

string elementValue = browser.EvaluateJavascript("document.getElementById('Id').value");

if(elementValue != "")
{
   DoSomething();
}

Could anybody provide an example of how to do this for Xamarin. Android/Monodroid using loadURL(javascript:)?

来源:https://stackoverflow.com/questions/22100373/how-to-evaluate-javascript-in-xamarin-android-monodroid-and-retrieve-result

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!