Hello all,
I'm trying to modify a TiWebView in an external module. What I'm trying to accomplish is to disable the
settings.setSupportMultipleWindows(true); settings.setJavaScriptCanOpenWindowsAutomatically(true);which are set in the original TiWebView creation.
I created a module and try to add this line:
import ti.modules.titanium.ui.WebViewProxy;and then use this function:
public TiWebView returnWebview(TiWebView view) { WebSettings settings = view.getSettings(); settings.setSupportMultipleWindows(false); settings.setJavaScriptCanOpenWindowsAutomatically(false); return view; }Unfortunately, when I try to import the .ui.WebViewProxy it gives the error
'The import ti.modules.titanium.ui cannot be resolved'
Any help on this? Or any other methods of changing a web view? Without having to build the entire source?
Regards,
Ron