updated docs, set hardwareback default to true

This commit is contained in:
Jesse MacFadyen 2015-03-04 00:26:57 -08:00
parent 9de15ac8bf
commit a45dbc80b4
2 changed files with 2 additions and 1 deletions

View File

@ -94,6 +94,7 @@ instance, or the system browser.
- __hidden__: set to `yes` to create the browser and load the page, but not show it. The loadstop event fires when loading is complete. Omit or set to `no` (default) to have the browser open and load normally. - __hidden__: set to `yes` to create the browser and load the page, but not show it. The loadstop event fires when loading is complete. Omit or set to `no` (default) to have the browser open and load normally.
- __clearcache__: set to `yes` to have the browser's cookie cache cleared before the new window is opened - __clearcache__: set to `yes` to have the browser's cookie cache cleared before the new window is opened
- __clearsessioncache__: set to `yes` to have the session cookie cache cleared before the new window is opened - __clearsessioncache__: set to `yes` to have the session cookie cache cleared before the new window is opened
- __hardwareback__: set to `yes` to use the hardware back button to navigate backwards through the `InAppBrowser`'s history. If there is no previous page, the `InAppBrowser` will close. The default value is `yes`, so you must set it to `no` if you want the back button to simply close the InAppBrowser.
iOS only: iOS only:

View File

@ -91,7 +91,7 @@ public class InAppBrowser extends CordovaPlugin {
private boolean openWindowHidden = false; private boolean openWindowHidden = false;
private boolean clearAllCache= false; private boolean clearAllCache= false;
private boolean clearSessionCache=false; private boolean clearSessionCache=false;
private boolean hadwareBackButton=false; private boolean hadwareBackButton=true;
/** /**
* Executes the request and returns PluginResult. * Executes the request and returns PluginResult.