mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
New BCL approach & BuildTasks
This commit is contained in:
26
Application/application_common.ts
Normal file
26
Application/application_common.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
export module tk {
|
||||
export enum TargetOS {
|
||||
iOS,
|
||||
Android,
|
||||
//WP
|
||||
}
|
||||
|
||||
export module ui {
|
||||
export class Application {
|
||||
|
||||
public os: TargetOS;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user