SceneStatus
ceramic.SceneStatus (Abstract)
Represents the lifecycle status of a Scene in the Ceramic framework.
SceneStatus tracks a scene through its complete lifecycle, from initialization through loading, creation, display, and eventual removal. Each status represents a specific phase that scenes go through, allowing the framework and developers to coordinate actions based on the scene's current state.
Lifecycle flow:
- NONE → Initial state when scene is created
- PRELOAD → Scene is preparing assets to load
- LOAD → Assets are actively being loaded
- CREATE → Scene content is being created
- FADE_IN → Scene is transitioning to visible
- READY → Scene is fully active and interactive
- FADE_OUT → Scene is transitioning out
- DISABLED → Scene is inactive and should be destroyed
The status progression is typically automatic, managed by the Scene class and the framework's scene management system. Developers can override scene methods (preload, create, fadeIn, fadeOut) to customize behavior at each phase.
Example usage:
if (scene.status == SceneStatus.READY) {
// Scene is fully loaded and interactive
scene.handleUserInput();
}
See: Scene, SceneSystem, App#scene
Type Conversions
From:
[Int](/api-docs/clay-native/Int/)
To:
[Int](/api-docs/clay-native/Int/)
Metadata
Name | Parameters |
---|---|
:enum |
- |