Sunday 13 April 2014

Event Life Cycle of Phonegap API.

Hello Friends,

Today, we are going to see how we can use the different of Phonegap API.

here is the list of event which we can use in our application.

For more videos please follow this channels
Please get the latest details about programming
visit our website
http://webconnect.0fees.net/

1) ondeviceready:
                      This event fires when the cordova is successfully loaded into the DOM. just like the load event of the document.
2) pause:
                      This event fires when an application puts into the background mode.
3) resume:
                     This event fires when an application is in foreground mode. (back into active state)
4) online:
                    This event fires when an application goes online or device is connected to the internet.
5) offline:
                   This event fires when an application goes offline or device is not connected to the internet.
6) backbutton:
                   This event fires when the user press the backbutton.
7) batterycritical:
                   This event fires when the battery reaches the critical level threshold. and this value is device-specific.
8) batterylow:
                    This event fires when the battery reaches the low level threshold.
9) batterystatus:
                   This event fires when the battery status changed at list one percentage (1%)
10) menubutton:
                   This event fires when the user press the menu button.
11) searchbutton:
                  This event fires when the user press the search button.
            
12) startcallbutton:
                 This event fires when the user press the start call button.
13) endcallbutton:
                 This event fires when the user end the call.
14) volumedownbutton:
                 This event fires when the user incress the volume. (Supported by Blackberry)
15) volumeupbutton:
                 This event fires when the user decress the volume.(Supported by Blackberry)


Now, we are using the some of event in this demo

1) Create your Phonegap project. Seehere

2) Open your index.html page and write this code into you page.



3) After, run this application.



For more videos please follow this channels
Please get the latest details about programming
visit our website
http://webconnect.0fees.net/


Thank You
Abhishek Bendre

No comments:

Post a Comment