iOS Question WebViewextra

megzz

Member
Licensed User
Longtime User
In B4A there is a method "addJavascriptInterface" so that if I want to call an app Sub from the javascript inside the webview, I just call it via APP.CallSub

Does this exist in B4i too? How? Sample code would be greatly appreciated.

Thanks in advance!
 

wl

Well-Known Member
Licensed User
Longtime User
app -> Javascript
Log(no.RunMethod("stringByEvaluatingJavaScriptFromString:", Array("document.title")))

Javascript -> app
OverrideUrl
 
Upvote 0
Top