Add onReset() to plugins, called on navigation.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/commit/b1299621 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/tree/b1299621 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/diff/b1299621 Branch: refs/heads/master Commit: b12996218f146e660c40f075c9adc83c4438c743 Parents: 939d30b Author: Braden Shepherdson <bra...@chromium.org> Authored: Wed Sep 12 10:51:56 2012 -0400 Committer: Braden Shepherdson <bra...@chromium.org> Committed: Wed Sep 12 10:51:56 2012 -0400 ---------------------------------------------------------------------- .../edge/guide/plugin-development/android/index.md | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-docs/blob/b1299621/docs/en/edge/guide/plugin-development/android/index.md ---------------------------------------------------------------------- diff --git a/docs/en/edge/guide/plugin-development/android/index.md b/docs/en/edge/guide/plugin-development/android/index.md index 2fc8761..df32af9 100644 --- a/docs/en/edge/guide/plugin-development/android/index.md +++ b/docs/en/edge/guide/plugin-development/android/index.md @@ -26,6 +26,7 @@ file. A plugin will consist of at least a single Java class that extends the `Plugin` class. A plugin **must** have a method called `execute` that must return a `PluginResult` object. In addition to this, there is a best practice that the plugin should handle pause and resume events, and should handle message passing between plugins. +Plugins with long-running requests or internal state should implement the `onReset()` method as well. This method is run when the `WebView` navigates to a new page or refreshes, which reloads the Javascript. ## Plugin Class Mapping