Methods

  • Prevents the user from interacting with the inspection by adding a loading screen.

    Each call to this function requires a corresponding call to removeLoading. Calling this function mlutiple times will not create multiple loading screens.

    Returns Promise<void>

  • Displays a message to the user.

    Parameters

    Returns Promise<void>

  • Displays a prompt where the user must click on of the provided buttons before proceeding.

    Parameters

    • title: string

      The title of the message to show to the user.

    • message: string

      The message to show to the user.

    • buttons: PromptButton[]

      The buttons to show. The user will not be able to proceed if no buttons are provided.

    Returns Promise<string | number | boolean>

    The return property of the button that was clicked.

  • Removes the loading screen, if there is one. If addLoading has been called multiple times, the loading screen will not be removed until removeLoading has been called the same number of times.

    Returns Promise<void>