cordova-back-stack

1.0.1 • Public • Published

cordova-back-stack

Create and manage stacks of cordova 'backbutton' event listeners.

Usage

Install:

npm install cordova-back-stack

Create a persistent handler:

backStack = require('cordova-back-handler')
 
 
backStack(function myCoolBackButtonHandler(event) {
    // Do cool back button handling
})

Meanwhile in another file create a removeable handler:

backStack = require('cordova-back-handler')
 
var thing.removeHandler = backStack(function myCoolBackButtonHandler(event) {
    // Do cool back button handling
    thing.removeHandler(); // Remove the handler from the stack.
})

Readme

Keywords

none

Package Sidebar

Install

npm i cordova-back-stack

Weekly Downloads

2

Version

1.0.1

License

ISC

Last publish

Collaborators

  • korynunn