sarkanydavidhu

Codova

Dec 6th, 2017
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (function () {
  2.     "use strict";
  3.  
  4.     document.addEventListener( 'deviceready', onDeviceReady.bind( this ), false );
  5.  
  6.     function onDeviceReady() {
  7.         // Handle the Cordova pause and resume events
  8.         document.addEventListener( 'pause', onPause.bind( this ), false );
  9.         document.addEventListener( 'resume', onResume.bind( this ), false );
  10.     };
  11.  
  12.     function onPause() {
  13.         // TODO: This application has been suspended. Save application state here.
  14.     };
  15.  
  16.     function onResume() {
  17.         // TODO: This application has been reactivated. Restore application state here.
  18.     };
  19. })();
Advertisement
Add Comment
Please, Sign In to add comment