zhichao lei 27e75f8d62 | 4 лет назад | |
---|---|---|
.. | ||
src | 4 лет назад | |
www | 4 лет назад | |
README.md | 4 лет назад | |
package.json | 4 лет назад | |
plugin.xml | 4 лет назад |
This plugin adds the ability to programmatically close an app on Android or Windows Phone 8.
Plugin id: cordova.custom.plugins.exitapp
To install this plugin, follow the Command-line Interface Guide.
If you are not using the Cordova Command-line Interface, follow Using Plugman to Manage Plugins.
confirmed = function(buttonIndex) { if(buttonIndex == 1) { console.log(“navigator.app.exitApp”); navigator.app.exitApp(); } }
onTouch = function() { navigator.notification.confirm('', confirmed, ‘Exit?'); }