Files
NativeScript/Application/application_common.ts

26 lines
621 B
TypeScript

import console_module = require("Console/console_common");
export enum TargetOS {
iOS,
Android
}
export class Application {
public os: TargetOS;
constructor() {
console = new console_module.TKConsole();
}
public onLaunch: () => any;
public onSuspend: () => any;
public onResume: () => any;
public onExit: () => any;
public onLowMemory: () => any;
public static current: Application = new Application();
// TODO: These fields are declared by the application.d.ts file and intellisense will come from there
public android: any;
public ios: any;
}