android - what does deviceready event in cordova really do -


when creating watcher in cordova, need fire after device ready.

in ionic framework using following code that.

$ionicplatform.ready(function() {    $cordovaplugin.somefunction().then(success, error); }); 

i want know code doing..? somefunction() , done .then(success, error);

this question answered existing cordova documentation:

cordova documentation - deviceready event

i recommend read tutorials or guides on how start hybrid app development.

success() called, when device has fired device ready event. errorshould self-explaining.


Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -