Skip to main content
Version: 8.0.3

display

The sos.display API groups together methods for getting information about the device. Primarily to find out which features it supports.

Methods

supports()

The supports() method determines whether a queried capability is supported.

  • 'FILE_SYSTEM_INTERNAL_STORAGE' -
supports(capability: DisplayCapability): Promise<boolean>;

API Example

import { sos } from '@signageos/front-applet';

void sos.onReady(async () => {
const supports = await sos.display.supports('SERIAL');

if (supports) {
console.log('This device supports serial port.');
} else {
console.log('This device does NOT support serial port.');
}
});