Example usage for org.apache.cordova CordovaInterfaceImpl CordovaInterfaceImpl

List of usage examples for org.apache.cordova CordovaInterfaceImpl CordovaInterfaceImpl

Introduction

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

Prototype

public CordovaInterfaceImpl(Activity activity) 

Source Link

Usage

From source file:com.example.administrator.myapplication.fragment.CordovaFragment2.java

License:Apache License

protected CordovaInterfaceImpl makeCordovaInterface() {
    return new CordovaInterfaceImpl(getActivity()) {
        @Override/*from w ww .j a  v a  2  s  .co m*/
        public Object onMessage(String id, Object data) {
            // Plumb this to CordovaActivity.onMessage for backwards compatibility
            return CordovaFragment2.this.onMessage(id, data);
        }
    };
}

From source file:com.webileapps.fragments.CordovaFragment.java

License:Apache License

protected CordovaInterfaceImpl makeCordovaInterface() {
    return new CordovaInterfaceImpl(getActivity()) {
        @Override//ww w. j a  va  2  s .co  m
        public Object onMessage(String id, Object data) {
            // Plumb this to CordovaActivity.onMessage for backwards compatibility
            return CordovaFragment.this.onMessage(id, data);
        }
    };
}

From source file:io.syng.fragment.WebViewFragment.java

License:Mozilla Public License

protected CordovaInterfaceImpl makeCordovaInterface() {
    return new CordovaInterfaceImpl(getActivity()) {
        @Override/*w  ww.j a  va  2 s  .  c o  m*/
        public Object onMessage(String id, Object data) {
            return WebViewFragment.this.onMessage(id, data);
        }
    };
}