mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
26 lines
621 B
TypeScript
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;
|
|
} |