You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhongjin eacb95c18a
Initial commit
6 years ago
..
src Initial commit 6 years ago
www Initial commit 6 years ago
README.md Initial commit 6 years ago
package.json Initial commit 6 years ago
plugin.xml Initial commit 6 years ago

README.md

cordova-plugin-exitapp

This plugin adds the ability to programmatically close an app on Android or Windows Phone 8.

Installation

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.

Usage

confirmed = function(buttonIndex) { if(buttonIndex == 1) { console.log("navigator.app.exitApp"); navigator.app.exitApp(); } }

onTouch = function() { navigator.notification.confirm('', confirmed, 'Exit?'); }