Book Image

JavaScript Mobile Application Development

Book Image

JavaScript Mobile Application Development

Overview of this book

Table of Contents (15 chapters)
JavaScript Mobile Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Cordova events


Cordova allows listening and creating handlers for its life cycle events. The following table shows the description of these events:

Event name

Description

Deviceready

This fires once Apache Cordova is fully loaded. Once this event fires, you can safely make calls to the Cordova API.

Pause

This fires if the application is put into the background.

Resume

This fires if the application is resumed from the background.

Online

This fires if the application becomes connected to the Internet.

offline

This fires if the application becomes disconnected from the Internet.

backbutton

This fires if the user clicks on the device's back button (some devices such as Android and Windows Phone devices have a back button).

batterycritical

This fires if the device's battery power reaches a critical state (that is, reached the critical-level threshold).

batterylow

This fires if the device's battery power reaches the low-level threshold.

batterystatus

This fires...