Optional
options: boolean | AddEventListenerOptionsOptional
options: boolean | AddEventListenerOptionsOptional
options: boolean | AddEventListenerOptionsOptional
options: boolean | AddEventListenerOptionsOptional
options: boolean | AddEventListenerOptionsThe error
event is sent to the global scope when an unhandled error is thrown.
The default behavior when this event occurs is to print the error to the screen
using console.error()
, and no further application code
is executed. The user must then press the +
button to exit the application.
Call event.preventDefault()
to supress this default behavior.
Optional
options: boolean | AddEventListenerOptionsThe unhandledrejection
event is sent to the global scope when a JavaScript
Promise that has no rejection handler is rejected.
The default behavior when this event occurs is to print the error to the screen
using console.error()
, and no further application code
is executed. The user must then press the +
button to exit the application.
Call event.preventDefault()
to supress this default behavior.
Optional
options: boolean | AddEventListenerOptionsThe unload
event is fired when the application is exiting.
By the time this event occurs, the event loop has already been stopped, so no async operations may be scheduled in the event handler.
Optional
options: boolean | AddEventListenerOptionsOptional
options: boolean | AddEventListenerOptionsGenerated using TypeDoc
The
resize
event is sent to the global scope when the console changes between handheld or docked mode. In handheld mode, only 720p resolution is supported. In docked mode, 1080p resolution is used.