@signageos/front-applet 8.1.1 → 8.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +1 -1
- package/dist/bundle.js.map +1 -1
- package/docs/sos/browser.md +66 -14
- package/docs/sos/command.md +52 -6
- package/docs/sos/debug.md +17 -2
- package/docs/sos/deviceInfo.md +27 -0
- package/docs/sos/display.md +34 -3
- package/docs/sos/fileSystem.md +1135 -59
- package/docs/sos/index.md +36 -12
- package/docs/sos/input.md +42 -1
- package/docs/sos/native/mdc.md +65 -19
- package/docs/sos/offline/cache.md +14 -8
- package/docs/sos/stream.md +1172 -37
- package/docs/sos/sync.md +2 -2
- package/docs/sos/video.md +515 -22
- package/docs/sos_management/security.md +4 -2
- package/docs/sos_management/wifi.md +9 -9
- package/es6/FrontApplet/Browser/Browser.d.ts +25 -9
- package/es6/FrontApplet/Browser/Browser.js +25 -9
- package/es6/FrontApplet/Browser/Browser.js.map +1 -1
- package/es6/FrontApplet/Browser/IOpenLinkOptions.d.ts +7 -0
- package/es6/FrontApplet/Browser/IOpenLinkOptions.js.map +1 -1
- package/es6/FrontApplet/Browser/events.d.ts +6 -0
- package/es6/FrontApplet/Browser/events.js.map +1 -1
- package/es6/FrontApplet/Command/Command.d.ts +15 -6
- package/es6/FrontApplet/Command/Command.js +15 -6
- package/es6/FrontApplet/Command/Command.js.map +1 -1
- package/es6/FrontApplet/Command/ICommand.d.ts +7 -0
- package/es6/FrontApplet/Command/ICommandEvent.d.ts +6 -0
- package/es6/FrontApplet/Debug/Debug.d.ts +11 -3
- package/es6/FrontApplet/Debug/Debug.js +11 -3
- package/es6/FrontApplet/Debug/Debug.js.map +1 -1
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.d.ts +15 -0
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js +16 -2
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js.map +1 -1
- package/es6/FrontApplet/Display/Display.d.ts +22 -14
- package/es6/FrontApplet/Display/Display.js +22 -14
- package/es6/FrontApplet/Display/Display.js.map +1 -1
- package/es6/FrontApplet/Display/IDisplay.d.ts +4 -0
- package/es6/FrontApplet/FileSystem/FileSystem.d.ts +429 -41
- package/es6/FrontApplet/FileSystem/FileSystem.js +427 -39
- package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
- package/es6/FrontApplet/FileSystem/HashAlgorithm.d.ts +4 -1
- package/es6/FrontApplet/FileSystem/types.d.ts +46 -0
- package/es6/FrontApplet/FileSystem/types.js.map +1 -1
- package/es6/FrontApplet/FrontApplet.d.ts +31 -7
- package/es6/FrontApplet/FrontApplet.js +32 -8
- package/es6/FrontApplet/FrontApplet.js.map +1 -1
- package/es6/FrontApplet/Input/IKeyUpEvent.d.ts +9 -0
- package/es6/FrontApplet/Input/IKeyUpEvent.js +6 -0
- package/es6/FrontApplet/Input/IKeyUpEvent.js.map +1 -1
- package/es6/FrontApplet/Input/Input.d.ts +17 -1
- package/es6/FrontApplet/Input/Input.js +17 -1
- package/es6/FrontApplet/Input/Input.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.d.ts +32 -11
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.js +14 -11
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.js.map +1 -1
- package/es6/FrontApplet/Stream/IStreamTrackInfo.d.ts +34 -0
- package/es6/FrontApplet/Stream/Stream.d.ts +245 -20
- package/es6/FrontApplet/Stream/Stream.js +245 -20
- package/es6/FrontApplet/Stream/Stream.js.map +1 -1
- package/es6/FrontApplet/Stream/StreamProtocol.d.ts +4 -0
- package/es6/FrontApplet/Stream/StreamProtocol.js +4 -0
- package/es6/FrontApplet/Stream/StreamProtocol.js.map +1 -1
- package/es6/FrontApplet/Stream/streamEventProperties.d.ts +11 -1
- package/es6/FrontApplet/Stream/streamEvents.d.ts +26 -0
- package/es6/FrontApplet/Video/IOptions.d.ts +41 -0
- package/es6/FrontApplet/Video/IVideoEvent.d.ts +8 -0
- package/es6/FrontApplet/Video/IVideoEvent.js.map +1 -1
- package/es6/FrontApplet/Video/IVideoProperties.d.ts +3 -0
- package/es6/FrontApplet/Video/Video.d.ts +256 -19
- package/es6/FrontApplet/Video/Video.js +258 -22
- package/es6/FrontApplet/Video/Video.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,25 @@ import IDisplay, { DisplayCapability } from './IDisplay';
|
|
|
3
3
|
/**
|
|
4
4
|
* The `sos.display` API groups together methods for getting information about the device. Primarily to find out which
|
|
5
5
|
* features it supports.
|
|
6
|
+
*
|
|
7
|
+
* <details>
|
|
8
|
+
* <summary>List of all display capabilities</summary>
|
|
9
|
+
* | Capability | Description |
|
|
10
|
+
* |:------------|:-------------|
|
|
11
|
+
* | `FILE_SYSTEM_INTERNAL_STORAGE` | If device supports internal storage |
|
|
12
|
+
* | `FILE_SYSTEM_EXTERNAL_STORAGE` | If device supports external storage |
|
|
13
|
+
* | `FILE_SYSTEM_FILE_CHECKSUM` | If device supports file checksum calculation |
|
|
14
|
+
* | `FILE_SYSTEM_LINK` | If device supports file system `link()` |
|
|
15
|
+
* | `FILE_SYSTEM_CREATE_ARCHIVE` | If device supports creating archives in the file system |
|
|
16
|
+
* | `FILE_SYSTEM_ARCHIVE_EXTRACT_INFO` | If device can determine a total size of a potentially extracted archive |
|
|
17
|
+
* | `TIMERS_PROPRIETARY` | If device supports proprietary timers |
|
|
18
|
+
* | `VIDEO_4K` | If device supports 4K video playback |
|
|
19
|
+
* | `BROWSER` | If device supports opening browser |
|
|
20
|
+
* | `SERIAL` | If device supports serial port communication |
|
|
21
|
+
* | `BARCODE_SCANNER` | If device supports barcode scanner setup |
|
|
22
|
+
* | `FRONT_OSD` | If device supports Front OSD (our on-screen display) |
|
|
23
|
+
* | `PROXIMITY_SENSOR` | If device supports proximity sensor |
|
|
24
|
+
* </details>
|
|
6
25
|
*/
|
|
7
26
|
declare class Display implements IDisplay {
|
|
8
27
|
private messagePrefix;
|
|
@@ -12,20 +31,9 @@ declare class Display implements IDisplay {
|
|
|
12
31
|
/** @internal */
|
|
13
32
|
constructor(messagePrefix: string, postMessage: IPostMessage<any>);
|
|
14
33
|
/**
|
|
15
|
-
* The `supports()` method determines whether a queried capability is supported.
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* - 'FILE_SYSTEM_EXTERNAL_STORAGE' - @todo
|
|
19
|
-
* - 'FILE_SYSTEM_FILE_CHECKSUM' - @todo
|
|
20
|
-
* - 'FILE_SYSTEM_LINK' - @todo
|
|
21
|
-
* - 'TIMERS_PROPRIETARY' - @todo
|
|
22
|
-
* - 'VIDEO_4K' - @todo
|
|
23
|
-
* - 'SERIAL' - @todo
|
|
24
|
-
* - 'BARCODE_SCANNER' - @todo
|
|
25
|
-
* - 'FRONT_OSD' - @todo
|
|
26
|
-
* - 'FILE_SYSTEM_CREATE_ARCHIVE' - @todo
|
|
27
|
-
* - 'FILE_SYSTEM_ARCHIVE_EXTRACT_INFO' - Device can determine a total size of a potentially extracted archive
|
|
28
|
-
*
|
|
34
|
+
* The `supports()` method determines whether a queried capability is supported by the device.
|
|
35
|
+
* @param capability - The capability to check for support.
|
|
36
|
+
* @returns {Promise<boolean>} Resolves to `true` if the capability is supported, otherwise `false`.
|
|
29
37
|
* @since 3.1.0
|
|
30
38
|
*/
|
|
31
39
|
supports(capability: DisplayCapability): Promise<boolean>;
|
|
@@ -7,6 +7,25 @@ const Validate_1 = __importDefault(require("../Validate/Validate"));
|
|
|
7
7
|
/**
|
|
8
8
|
* The `sos.display` API groups together methods for getting information about the device. Primarily to find out which
|
|
9
9
|
* features it supports.
|
|
10
|
+
*
|
|
11
|
+
* <details>
|
|
12
|
+
* <summary>List of all display capabilities</summary>
|
|
13
|
+
* | Capability | Description |
|
|
14
|
+
* |:------------|:-------------|
|
|
15
|
+
* | `FILE_SYSTEM_INTERNAL_STORAGE` | If device supports internal storage |
|
|
16
|
+
* | `FILE_SYSTEM_EXTERNAL_STORAGE` | If device supports external storage |
|
|
17
|
+
* | `FILE_SYSTEM_FILE_CHECKSUM` | If device supports file checksum calculation |
|
|
18
|
+
* | `FILE_SYSTEM_LINK` | If device supports file system `link()` |
|
|
19
|
+
* | `FILE_SYSTEM_CREATE_ARCHIVE` | If device supports creating archives in the file system |
|
|
20
|
+
* | `FILE_SYSTEM_ARCHIVE_EXTRACT_INFO` | If device can determine a total size of a potentially extracted archive |
|
|
21
|
+
* | `TIMERS_PROPRIETARY` | If device supports proprietary timers |
|
|
22
|
+
* | `VIDEO_4K` | If device supports 4K video playback |
|
|
23
|
+
* | `BROWSER` | If device supports opening browser |
|
|
24
|
+
* | `SERIAL` | If device supports serial port communication |
|
|
25
|
+
* | `BARCODE_SCANNER` | If device supports barcode scanner setup |
|
|
26
|
+
* | `FRONT_OSD` | If device supports Front OSD (our on-screen display) |
|
|
27
|
+
* | `PROXIMITY_SENSOR` | If device supports proximity sensor |
|
|
28
|
+
* </details>
|
|
10
29
|
*/
|
|
11
30
|
class Display {
|
|
12
31
|
messagePrefix;
|
|
@@ -19,20 +38,9 @@ class Display {
|
|
|
19
38
|
this.postMessage = postMessage;
|
|
20
39
|
}
|
|
21
40
|
/**
|
|
22
|
-
* The `supports()` method determines whether a queried capability is supported.
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* - 'FILE_SYSTEM_EXTERNAL_STORAGE' - @todo
|
|
26
|
-
* - 'FILE_SYSTEM_FILE_CHECKSUM' - @todo
|
|
27
|
-
* - 'FILE_SYSTEM_LINK' - @todo
|
|
28
|
-
* - 'TIMERS_PROPRIETARY' - @todo
|
|
29
|
-
* - 'VIDEO_4K' - @todo
|
|
30
|
-
* - 'SERIAL' - @todo
|
|
31
|
-
* - 'BARCODE_SCANNER' - @todo
|
|
32
|
-
* - 'FRONT_OSD' - @todo
|
|
33
|
-
* - 'FILE_SYSTEM_CREATE_ARCHIVE' - @todo
|
|
34
|
-
* - 'FILE_SYSTEM_ARCHIVE_EXTRACT_INFO' - Device can determine a total size of a potentially extracted archive
|
|
35
|
-
*
|
|
41
|
+
* The `supports()` method determines whether a queried capability is supported by the device.
|
|
42
|
+
* @param capability - The capability to check for support.
|
|
43
|
+
* @returns {Promise<boolean>} Resolves to `true` if the capability is supported, otherwise `false`.
|
|
36
44
|
* @since 3.1.0
|
|
37
45
|
*/
|
|
38
46
|
async supports(capability) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Display.js","sourceRoot":"","sources":["../../../src/FrontApplet/Display/Display.ts"],"names":[],"mappings":";;;;;AACA,oEAA4C;AAG5C
|
|
1
|
+
{"version":3,"file":"Display.js","sourceRoot":"","sources":["../../../src/FrontApplet/Display/Display.ts"],"names":[],"mappings":";;;;;AACA,oEAA4C;AAG5C;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,OAAO;IAOH;IACA;IAPF,MAAM,CAAC,cAAc,GAAW,SAAS,CAAC;IAE1C,OAAO,GAAW,SAAU,CAAC;IAEpC,gBAAgB;IAChB,YACS,aAAqB,EACrB,WAA8B;QAD9B,kBAAa,GAAb,aAAa,CAAQ;QACrB,gBAAW,GAAX,WAAW,CAAmB;IACpC,CAAC;IAEJ;;;;;OAKG;IACI,KAAK,CAAC,QAAQ,CAAC,UAA6B;QAClD,IAAA,kBAAQ,EAAC,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;QAClC,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC;YAC3C,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;YACjC,UAAU;SACV,CAAC,CAAC;QACH,OAAO,QAAQ,CAAC;IACjB,CAAC;IAEO,UAAU,CAAC,IAAY;QAC9B,OAAO,IAAI,CAAC,aAAa,GAAG,GAAG,GAAG,OAAO,CAAC,cAAc,GAAG,GAAG,GAAG,IAAI,CAAC;IACvE,CAAC;;AAGF,kBAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { AnyString } from '../../utils/types';
|
|
2
|
+
/**
|
|
3
|
+
* Represents the capabilities that a display can support.
|
|
4
|
+
* These capabilities are used to determine if a specific feature is available on the display.
|
|
5
|
+
*/
|
|
2
6
|
export type DisplayCapability = '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_INFO' | 'BROWSER' | 'PROXIMITY_SENSOR' | AnyString;
|
|
3
7
|
export default interface IDisplay {
|
|
4
8
|
supports(capability: DisplayCapability): Promise<boolean>;
|