Files
NativeScript/apps/tests/app/app.ts
2015-06-01 17:04:06 +03:00

31 lines
1.2 KiB
TypeScript

import application = require("application");
application.mainModule = "app/mainPage";
application.on(application.launchEvent, function (args: application.ApplicationEventData) {
console.log("launchEvent, iOS: " + args.ios + ", Android: " + args.android);
});
application.on(application.uncaughtErrorEvent, function (args: application.ApplicationEventData) {
console.log("uncaughtErrorEvent, iOS: " + args.ios + ", Android: " + args.android);
});
application.on(application.suspendEvent, function (args: application.ApplicationEventData) {
console.log("suspendEvent, iOS: " + args.ios + ", Android: " + args.android);
});
application.on(application.resumeEvent, function (args: application.ApplicationEventData) {
console.log("resumeEvent, iOS: " + args.ios + ", Android: " + args.android);
});
application.on(application.exitEvent, function (args: application.ApplicationEventData) {
console.log("exitEvent, iOS: " + args.ios + ", Android: " + args.android);
});
application.on(application.lowMemoryEvent, function (args: application.ApplicationEventData) {
console.log("exitEvent, iOS: " + args.ios + ", Android: " + args.android);
});
application.start();