Skip to content

revetkn/cordova-plugin-exitapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 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

Languages

  • Java 52.0%
  • C# 25.3%
  • Objective-C 11.8%
  • JavaScript 10.9%