mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
various application event implementation fixes
This commit is contained in:
34
application/application.d.ts
vendored
34
application/application.d.ts
vendored
@ -15,6 +15,36 @@ declare module "application" {
|
||||
nativeError: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* String value used when hooking to launch event.
|
||||
*/
|
||||
export var launch: string;
|
||||
|
||||
/**
|
||||
* String value used when hooking to uncaughtError event.
|
||||
*/
|
||||
export var uncaughtError: string;
|
||||
|
||||
/**
|
||||
* String value used when hooking to suspend event.
|
||||
*/
|
||||
export var suspend: string;
|
||||
|
||||
/**
|
||||
* String value used when hooking to resume event.
|
||||
*/
|
||||
export var resume: string;
|
||||
|
||||
/**
|
||||
* String value used when hooking to exit event.
|
||||
*/
|
||||
export var exit: string;
|
||||
|
||||
/**
|
||||
* String value used when hooking to lowMemory event.
|
||||
*/
|
||||
export var lowMemory: string;
|
||||
|
||||
/**
|
||||
* Event data containing information for the application events.
|
||||
*/
|
||||
@ -22,12 +52,12 @@ declare module "application" {
|
||||
/**
|
||||
* Gets the native iOS event arguments. Valid only when running on iOS.
|
||||
*/
|
||||
ios: any;
|
||||
ios?: any;
|
||||
|
||||
/**
|
||||
* Gets the native Android event arguments. Valid only when running on Android.
|
||||
*/
|
||||
android: any;
|
||||
android?: any;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user