Example usage for org.apache.cordova.secondwebview SecondWebViewInterface SecondWebViewInterface

List of usage examples for org.apache.cordova.secondwebview SecondWebViewInterface SecondWebViewInterface

Introduction

In this page you can find the example usage for org.apache.cordova.secondwebview SecondWebViewInterface SecondWebViewInterface.

Prototype

public SecondWebViewInterface(String role, CordovaActivity self, CordovaActivity other) 

Source Link

Usage

From source file:org.example.app.MainActivity.java

License:Apache License

@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    loadUrl(launchUrl);/*from  w ww .j a v a  2  s  .  c o  m*/
    MainActivity.self = this;
    MainActivity.Interface = new SecondWebViewInterface("parent", MainActivity.self,
            SecondWebViewActivity.self);
    ((WebView) appView.getEngine().getView()).addJavascriptInterface(MainActivity.Interface, "Interface");
}