application lifecycle triggers
For original references to the contracts below, see Contracts. Source annotations refer to the AIR checkout.
When to use what
- "Which option values are actually legal, what is the real default, and what does a second
createAirAppor a restart-after-failure hit?" ->normalizeAirOptions,admitAirOptionsplusAirAppImpl.close, app-options.md. - "
createAirApprejected with someAIR_E_.../WEBGL2_REQUIRED" -> matcherror.code, then startup-errors.md. - "Swap or tear down the running scene without reloading" ->
app.run/app.releaseScene!(), receipt fields in app-options.md. - "The context was lost; is the app still drawing?" ->
app.contextHealth/attachContextHealth, context-health.md. - "Register asset, listener and timer cleanup that a scene switch must honour" ->
app.session/createSessionScope, session-scope.md. - "Fill the window versus fit a host element, or wire design resolution" ->
screenMode/containeranddesignResolutionrows in app-options.md;view.setDesignResolutionSizeis called for you, coordinate-maths routing goes to the camera and UI skills, prose indocs/manual/design-viewport-and-controls.md.