Example usage for org.apache.cordova PluginManager onDestroy

List of usage examples for org.apache.cordova PluginManager onDestroy

Introduction

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

Prototype

public void onDestroy() 

Source Link

Document

The final call you receive before your activity is destroyed.

Usage

From source file:com.mobicage.rogerthat.cordova.CordovaActionScreenActivity.java

License:Apache License

@Override
public void onDestroy() {
    super.onDestroy();
    PluginManager pluginManager = mWebInterface.getPluginManager();
    if (pluginManager != null) {
        pluginManager.onDestroy();
    }//from   ww  w .ja v a2  s .  c om
    mWebInterface.clearHistory();
    mWebInterface.clearCache();
    mWebInterface.loadUrl("about:blank");
    mWebInterface = null;
}