Hi,

There is any way to get a reference to the XWalkView Instance from within a
Cordova plugin?

Usually you do something like this to get a CordovaWebView reference:

// Cordova 3.x, class CordovaWebView extends WebView, -> AbsoluteLayout ->
ViewGroup -> View -> Object
if(View.class.isAssignableFrom(CordovaWebView.class)) {
return (View) webView;
}
// Cordova 4.0.0-dev, interface CordovaWebView { View getView(); }
try {
Method getViewMethod = CordovaWebView.class.getMethod("getView",
(Class<?>[]) null);
if(getViewMethod != null) {
Object[] args = {};
return (View) getViewMethod.invoke(webView, args);
}
} catch (Exception e) {
}
_______________________________________________
Crosswalk-help mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help

Reply via email to