Shows or Hides a loading screen over the canvas.

Constructors

Accessors

Methods

Constructors

  • Constructor. Creates a new LoadingScreen that will show/hide a loading screen over the canvas.

    Parameters

    • visual: Visual
    • Optional onShow: (() => void)

      A function that will get called when the LoadingScreen show method has been called.

        • (): void
        • Returns void

    • Optional onHide: (() => void)

      A function that will get called when the LoadingScreen hide method has been called.

        • (): void
        • Returns void

    • Optional options: LoadingScreenOptions

      The set of options to be used during initialization.

    Returns LoadingScreen

Accessors

  • get destroyed(): boolean
  • State of instance destructions.

    Returns boolean

    The state of instance destructions.

Methods

  • Destroys the LoadingScreen and releases all of it's resources.

    Returns void

  • Hides the loading screen.

    Returns void

  • Shows the loading screen.

    Returns void

Generated using TypeDoc