Skip to main content
Version: 6.6.0

Display

Display API allows you to query the display to find out, which features it supports. That way your applet can handle cases, when a certain feature isn't supported by a particular display.

All methods

MethodDescriptionSupported since
supports()Query, whether a certain feature is supported by the display3.1.0

supports()

Query the display to find out, whether a certain feature is supported. To let you know, when you should call this method, we will warn you throughout the content JS API documentation with a warning message like this one:

warning
  • Before using this API, ensure that the display supports serial via sos.display.supports("SERIAL").

List of capabilities

ParamDescription
FILE_SYSTEM_INTERNAL_STORAGE
FILE_SYSTEM_EXTERNAL_STORAGE
FILE_SYSTEM_FILE_CHECKSUM
FILE_SYSTEM_LINK
TIMERS_PROPRIETARY
VIDEO_4K
SERIAL
BARCODE_SCANNER
FRONT_OSD
FILE_SYSTEM_CREATE_ARCHIVE
FILE_SYSTEM_ARCHIVE_EXTRACT_INFOInformation about total size of all files when archive will be extracted

Javascript example

const serialPort = await sos.display.supports("SERIAL");