Static
Readonly
registeruse Application.registerWaitForInteraction instead
true if the document is focused
true if the application is currently visible (it's tab is active and not minimized)
audio muted?
set global audio mute
Static
userStatic
registerRegister a callback that will be called when the user interacts with the page (click, touch, keypress, etc).
If the user has already interacted with the page, the callback will be called immediately.
This can be used to wait for user interaction before playing audio, for example.
Static
unregisterUnregister a callback that was previously registered with registerWaitForInteraction.
Generated using TypeDoc
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).