nx.js
NamespacesSwitchInterfaces

WebAppletOptions

Configuration options for WebApplet.start(). All values are optional and only take effect at launch time.

Properties

PropertyTypeDescription
backgroundKind?"default"Background kind.
bootAsMediaPlayer?booleanBoot as a media player applet.
bootDisplayKind?"default" | "white" | "black"Boot display screen color.
bootHidden?booleanStart the browser hidden (can be shown later with appear()).
bootLoadingIcon?booleanShow/hide the boot loading icon (Offline mode only).
footer?booleanWhether to show the footer (address bar).
footerFixedKind?"default" | "always" | "hidden"Footer fixed display kind.
jsExtension?booleanEnable the window.nx JavaScript API in the browser for bidirectional messaging.
leftStickMode?"pointer" | "cursor"Left stick behavior: 'pointer' (move pointer) or 'cursor' (scroll).
mediaAutoPlay?booleanEnable/disable media autoplay.
mediaPlayerAutoClose?booleanEnable/disable media player auto-close on end.
mediaPlayerSpeedControl?booleanEnable/disable media player speed controls.
mediaPlayerUi?booleanShow/hide media player UI (Offline mode only).
overrideMediaAudioVolume?numberOverride media audio volume (0.0 to 1.0).
overrideWebAudioVolume?numberOverride web audio volume (0.0 to 1.0).
pageCache?booleanEnable/disable the page cache.
pageFade?booleanEnable/disable page fade transition.
pageScrollIndicator?booleanShow/hide the page scroll indicator.
pointer?booleanWhether to show a pointer cursor.
screenShot?booleanEnable/disable screenshot capture (Web mode only).
userAgentAdditionalString?stringAdditional string appended to the user agent (Web mode only).
webAudio?booleanEnable/disable Web Audio API.

On this page