NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration
Dig in
ts
const SceneEvents: {
  sceneContentSetup: string;
  sceneDidActivate: string;
  sceneDidDisconnect: string;
  sceneDidEnterBackground: string;
  sceneWillConnect: string;
  sceneWillEnterForeground: string;
  sceneWillResignActive: string;
};

Defined in: application/application-common.ts

Type Declaration

sceneContentSetup

ts
sceneContentSetup: string;

Deprecated

Use the Application 'windowOpen' event and NativeWindow.setContent() instead.

sceneDidActivate

ts
sceneDidActivate: string;

Deprecated

Use NativeWindowEvents.sceneDidActivate instead.

sceneDidDisconnect

ts
sceneDidDisconnect: string;

Deprecated

Use NativeWindowEvents.sceneDidDisconnect instead.

sceneDidEnterBackground

ts
sceneDidEnterBackground: string;

Deprecated

Use NativeWindowEvents.sceneDidEnterBackground instead.

sceneWillConnect

ts
sceneWillConnect: string;

Deprecated

Use NativeWindowEvents.sceneWillConnect instead.

sceneWillEnterForeground

ts
sceneWillEnterForeground: string;

Deprecated

Use NativeWindowEvents.sceneWillEnterForeground instead.

sceneWillResignActive

ts
sceneWillResignActive: string;

Deprecated

Use NativeWindowEvents.sceneWillResignActive instead.

Deprecated

Use NativeWindowEvents from @nativescript/core/native-window instead.