Interface ScreenComponent
- All Superinterfaces:
megalodonte.contracts.ScreenComponentContract<Component>, megalodonte.contracts.ScreenLifecycle
Interface for screen-level components managed by the router. A screen has
a lifecycle:
render() produces the component tree, onMount()
is called once the stage is visible, and onDestroy() is called
when the screen is navigated away from.-
Method Summary
-
Method Details
-
render
-
onMount
default void onMount()Called once after the stage is visible and the scene is attached. Override for one-time setup.- Specified by:
onMountin interfacemegalodonte.contracts.ScreenLifecycle
-
onDestroy
default void onDestroy()Called when the screen is destroyed (navigated away from). Override for cleanup.- Specified by:
onDestroyin interfacemegalodonte.contracts.ScreenLifecycle
-