IBootstrap
Static Members
provider
Description: Static provider to resolve internal dependencies.
Methods
SetProvider(IDependencyProvider provider)
Description: Binds a dependency provider to the bootstrap.
Parameters:
provider
: The provider to be used for resolving dependencies.
OnBootstrapStartAsync
Description: Called when the bootstrap starts after the scene has been loaded.
Returns: A task representing the asynchronous operation.
OnBootstrapStopAsync
Description: Called before the scene unloads to perform any necessary clean-up.
Returns: A task representing the asynchronous operation.
UnloadAsync
Description: Unloads the current scene.
Returns: A task representing the asynchronous unload operation.
FetchCanvas<T>
Description: Fetches an active canvas within the scene scope.
Type Parameters:
T
: The type of canvas to fetch.
Returns: The canvas instance if found; otherwise,
null
.
SceneWillUnloadAsync
Description: Called when the scene is about to unload.
Returns: A task representing the asynchronous operation.
SceneWillLoadAsync
Description: Called when the scene is about to load.
Returns: A task representing the asynchronous operation.
Load(IAsyncScene sceneContext)
Description: Called when the scene has finished loading to allow the bootstrap to run.
Parameters:
sceneContext
: The context of the loaded scene.
Last updated