application module events added

This commit is contained in:
Vladimir Enchev
2015-06-01 15:10:47 +03:00
parent 79caa9185c
commit c6549343bc
6 changed files with 231 additions and 109 deletions

View File

@@ -1,3 +1,28 @@
import application = require("application");
application.mainModule = "app/mainPage";
application.on("onLaunch", function (args) {
console.log("onLaunch: " + args);
});
application.on("onUncaughtError", function (args) {
console.log("onUncaughtError: " + args);
});
application.on("onSuspend", function (args) {
console.log("onSuspend: " + args);
});
application.on("onResume", function (args) {
console.log("onResume: " + args);
});
application.on("onExit", function (args) {
console.log("onExit: " + args);
});
application.on("onLowMemory", function (args) {
console.log("onLowMemory: " + args);
});
application.start();