The Framework
  • Introduction
    • What is The Framework
    • Core Objectives
    • Key Features
    • Architecture Overview
    • Benefits
    • Conclusion
  • Getting Started
    • Installation
  • Quick Setup
    • Unity Setup
    • Creating a Scene
    • Creating a Bootstrap
    • Creating a Canvas
  • API Reference
    • Scene Management
      • ICanvas
      • INavigationService
      • IDataService
      • IBootstrap
      • IAsyncScene
Powered by GitBook
On this page
  • Static Members
  • Methods
  1. API Reference
  2. Scene Management

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.

PreviousIDataServiceNextIAsyncScene

Last updated 6 months ago