API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

E

enumApplicationState

@codexo/exojs / core / stable

Lifecycle state of an Application, in the same vocabulary SceneState uses for a scene. | State | Meaning | |---|---| | `Stopped` | Constructed, or halted again - no frame loop, still reusable | | `Loading` | Application.start is running: backend, scene navigation | | `Running` | Frame loop live | | `Halting` | Application.stop or Application.destroy is taking the loop down | | `Destroying` | Application.destroy's asynchronous teardown is in flight | | `Destroyed` | Teardown finished - the instance is permanently unusable | `Destroying` and `Destroyed` are distinct because teardown is asynchronous: `destroy()` returns a Promise, and everything between that call and its fulfilment is `Destroying`. Both are terminal in the sense that Application.start rejects from either.

0
props
0
methods
0
events
Import
import { ApplicationState } from '@codexo/exojs'

Lifecycle state of an Application, in the same vocabulary SceneState uses for a scene.

| State | Meaning | |---|---| | `Stopped` | Constructed, or halted again - no frame loop, still reusable | | `Loading` | Application.start is running: backend, scene navigation | | `Running` | Frame loop live | | `Halting` | Application.stop or Application.destroy is taking the loop down | | `Destroying` | Application.destroy's asynchronous teardown is in flight | | `Destroyed` | Teardown finished - the instance is permanently unusable |

`Destroying` and `Destroyed` are distinct because teardown is asynchronous: `destroy()` returns a Promise, and everything between that call and its fulfilment is `Destroying`. Both are terminal in the sense that Application.start rejects from either.

Members6
Destroyed
Destroying
Halting
Loading
Running
Stopped
Source