mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(ios): multi-window support (#10786)
This commit is contained in:
@@ -80,6 +80,19 @@ function applySdkVersionClass(rootView: View): void {
|
||||
|
||||
const globalEvents = getNativeScriptGlobals().events;
|
||||
|
||||
// Scene lifecycle event names
|
||||
export const SceneEvents = {
|
||||
sceneWillConnect: 'sceneWillConnect',
|
||||
sceneDidActivate: 'sceneDidActivate',
|
||||
sceneWillResignActive: 'sceneWillResignActive',
|
||||
sceneWillEnterForeground: 'sceneWillEnterForeground',
|
||||
sceneDidEnterBackground: 'sceneDidEnterBackground',
|
||||
sceneDidDisconnect: 'sceneDidDisconnect',
|
||||
sceneContentSetup: 'sceneContentSetup',
|
||||
};
|
||||
|
||||
export type SceneEventName = (typeof SceneEvents)[keyof typeof SceneEvents];
|
||||
|
||||
// helper interface to correctly type Application event handlers
|
||||
interface ApplicationEvents {
|
||||
off(eventNames: string, callback?: any, thisArg?: any): void;
|
||||
|
||||
Reference in New Issue
Block a user