The Application class can be used to mute audio globally, and to check if the application (canvas) is currently visible (it's tab is active and not minimized).

Hierarchy

Accessors

  • get hasFocus(): boolean
  • Returns boolean

    true if the document is focused

  • get isVisible(): boolean
  • Returns boolean

    true if the application is currently visible (it's tab is active and not minimized)

  • get muted(): boolean
  • audio muted?

    Returns boolean

  • set muted(value): void
  • set global audio mute

    Parameters

    • value: boolean

    Returns void

  • get userInteractionRegistered(): boolean
  • Returns boolean

Methods

  • Parameters

    Returns void

Generated using TypeDoc