Skip to content

gaqzi/cordova-plugin-exitapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?'); }

About

A plugin that implements `navigator.app.exitApp` on WP8

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published