@signageos/front-applet 7.2.0 → 8.0.0
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 +8 -4
- package/dist/bundle.js.map +1 -1
- package/docs/fpath/index.md +316 -0
- package/docs/index.md +18 -85
- package/docs/sos/browser.md +210 -0
- package/docs/sos/command.md +68 -0
- package/docs/sos/debug.md +25 -0
- package/docs/sos/deviceInfo.md +49 -0
- package/docs/sos/display.md +21 -0
- package/docs/sos/fileSystem.md +594 -0
- package/docs/sos/hardware/barcodeScanner.md +40 -0
- package/docs/sos/hardware/index.md +64 -0
- package/docs/sos/hardware/led.md +14 -0
- package/docs/sos/index.md +82 -0
- package/docs/sos/input.md +73 -0
- package/docs/sos/monitors.md +21 -0
- package/docs/sos/native/index.md +5 -0
- package/docs/sos/native/mdc.md +240 -0
- package/docs/sos/offline/cache.md +183 -0
- package/docs/sos/offline/index.md +188 -0
- package/docs/sos/osd.md +13 -0
- package/docs/sos/proofOfPlay.md +37 -0
- package/docs/sos/stream.md +960 -0
- package/docs/sos/sync.md +298 -0
- package/docs/sos/video.md +285 -0
- package/docs/sos_management/app.md +102 -0
- package/docs/sos_management/audio.md +29 -0
- package/docs/sos_management/debug.md +33 -0
- package/docs/sos_management/firmware.md +86 -0
- package/docs/sos_management/index.md +212 -0
- package/docs/sos_management/network.md +197 -0
- package/docs/sos_management/os.md +54 -0
- package/docs/sos_management/package.md +33 -0
- package/docs/sos_management/power.md +136 -0
- package/docs/sos_management/proxy.md +41 -0
- package/docs/sos_management/remoteControl.md +72 -0
- package/docs/sos_management/screen.md +198 -0
- package/docs/sos_management/security.md +47 -0
- package/docs/sos_management/time.md +101 -0
- package/docs/sos_management/wifi.md +366 -0
- package/es6/FrontApplet/Browser/Browser.d.ts +61 -8
- package/es6/FrontApplet/Browser/Browser.js +91 -39
- package/es6/FrontApplet/Browser/Browser.js.map +1 -1
- package/es6/FrontApplet/Browser/events.js +2 -2
- package/es6/FrontApplet/Browser/events.js.map +1 -1
- package/es6/FrontApplet/Command/Command.d.ts +37 -3
- package/es6/FrontApplet/Command/Command.js +49 -20
- package/es6/FrontApplet/Command/Command.js.map +1 -1
- package/es6/FrontApplet/Command/ICommandEvent.d.ts +6 -2
- package/es6/FrontApplet/Connect/Connect.d.ts +3 -0
- package/es6/FrontApplet/Connect/Connect.js +55 -7
- package/es6/FrontApplet/Connect/Connect.js.map +1 -1
- package/es6/FrontApplet/Connect/IConnectMessage.d.ts +1 -1
- package/es6/FrontApplet/Debug/Debug.d.ts +15 -1
- package/es6/FrontApplet/Debug/Debug.js +27 -17
- package/es6/FrontApplet/Debug/Debug.js.map +1 -1
- package/es6/FrontApplet/Debug/debugDecorator.d.ts +3 -3
- package/es6/FrontApplet/Debug/debugDecorator.js +13 -7
- package/es6/FrontApplet/Debug/debugDecorator.js.map +1 -1
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.d.ts +23 -0
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js +36 -27
- package/es6/FrontApplet/DeviceInfo/DeviceInfo.js.map +1 -1
- package/es6/FrontApplet/Dimensions/coordinationsHelper.js +1 -2
- package/es6/FrontApplet/Dimensions/coordinationsHelper.js.map +1 -1
- package/es6/FrontApplet/Display/Display.d.ts +25 -3
- package/es6/FrontApplet/Display/Display.js +35 -19
- package/es6/FrontApplet/Display/Display.js.map +1 -1
- package/es6/FrontApplet/Display/IDisplay.d.ts +3 -1
- package/es6/FrontApplet/Error/AppletCommandError.js +12 -3
- package/es6/FrontApplet/Error/AppletCommandError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletError.js +10 -2
- package/es6/FrontApplet/Error/AppletError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletHardwareError.js +12 -3
- package/es6/FrontApplet/Error/AppletHardwareError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletOfflineCacheError.js +10 -2
- package/es6/FrontApplet/Error/AppletOfflineCacheError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletResourcesError.js +12 -3
- package/es6/FrontApplet/Error/AppletResourcesError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletSecurityError.js +12 -3
- package/es6/FrontApplet/Error/AppletSecurityError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletStreamError.js +10 -2
- package/es6/FrontApplet/Error/AppletStreamError.js.map +1 -1
- package/es6/FrontApplet/Error/AppletVideoError.js +12 -3
- package/es6/FrontApplet/Error/AppletVideoError.js.map +1 -1
- package/es6/FrontApplet/Error/ErrorCodesMessages.js +4 -1
- package/es6/FrontApplet/Error/ErrorCodesMessages.js.map +1 -1
- package/es6/FrontApplet/Error/ErrorSuggestions.js +1 -0
- package/es6/FrontApplet/Error/ErrorSuggestions.js.map +1 -1
- package/es6/FrontApplet/Error/FileNotFoundError.js +10 -2
- package/es6/FrontApplet/Error/FileNotFoundError.js.map +1 -1
- package/es6/FrontApplet/Error/SosError.js +4 -0
- package/es6/FrontApplet/Error/SosError.js.map +1 -1
- package/es6/FrontApplet/Error/errorHelper.js +5 -6
- package/es6/FrontApplet/Error/errorHelper.js.map +1 -1
- package/es6/FrontApplet/Exchange/Exchange.js +7 -14
- package/es6/FrontApplet/Exchange/Exchange.js.map +1 -1
- package/es6/FrontApplet/FileSystem/FileSystem.d.ts +156 -1
- package/es6/FrontApplet/FileSystem/FileSystem.js +316 -193
- package/es6/FrontApplet/FileSystem/FileSystem.js.map +1 -1
- package/es6/FrontApplet/FileSystem/HashAlgorithm.d.ts +2 -0
- package/es6/FrontApplet/{Stream/streamListeners.js → FileSystem/HashAlgorithm.js} +1 -1
- package/es6/FrontApplet/FileSystem/HashAlgorithm.js.map +1 -0
- package/es6/FrontApplet/Font/fontFaceGenerator.js.map +1 -1
- package/es6/FrontApplet/FrontApplet.d.ts +55 -4
- package/es6/FrontApplet/FrontApplet.js +124 -47
- package/es6/FrontApplet/FrontApplet.js.map +1 -1
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.d.ts +2 -0
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js +35 -54
- package/es6/FrontApplet/Hardware/BarcodeScanner/BarcodeScanner.js.map +1 -1
- package/es6/FrontApplet/Hardware/Hardware.d.ts +16 -2
- package/es6/FrontApplet/Hardware/Hardware.js +31 -19
- package/es6/FrontApplet/Hardware/Hardware.js.map +1 -1
- package/es6/FrontApplet/Hardware/IHardware.d.ts +2 -2
- package/es6/FrontApplet/Hardware/ISerialPort.d.ts +16 -0
- package/es6/FrontApplet/Hardware/ISerialPortOptions.js +1 -1
- package/es6/FrontApplet/Hardware/ISerialPortOptions.js.map +1 -1
- package/es6/FrontApplet/Hardware/Led/Led.d.ts +8 -0
- package/es6/FrontApplet/Hardware/Led/Led.js +20 -18
- package/es6/FrontApplet/Hardware/Led/Led.js.map +1 -1
- package/es6/FrontApplet/Hardware/SerialPort.d.ts +1 -1
- package/es6/FrontApplet/Hardware/SerialPort.js +15 -23
- package/es6/FrontApplet/Hardware/SerialPort.js.map +1 -1
- package/es6/FrontApplet/Hash/generator.js +1 -2
- package/es6/FrontApplet/Hash/generator.js.map +1 -1
- package/es6/FrontApplet/Iframe/Iframe.d.ts +9 -8
- package/es6/FrontApplet/Iframe/Iframe.js +10 -0
- package/es6/FrontApplet/Iframe/Iframe.js.map +1 -1
- package/es6/FrontApplet/Input/IInput.d.ts +1 -2
- package/es6/FrontApplet/Input/IKeyUpEvent.d.ts +32 -2
- package/es6/FrontApplet/Input/IKeyUpEvent.js +32 -0
- package/es6/FrontApplet/Input/IKeyUpEvent.js.map +1 -1
- package/es6/FrontApplet/Input/Input.d.ts +19 -3
- package/es6/FrontApplet/Input/Input.js +43 -22
- package/es6/FrontApplet/Input/Input.js.map +1 -1
- package/es6/FrontApplet/Management/App/App.d.ts +48 -10
- package/es6/FrontApplet/Management/App/App.js +45 -30
- package/es6/FrontApplet/Management/App/App.js.map +1 -1
- package/es6/FrontApplet/Management/App/IApp.d.ts +3 -1
- package/es6/FrontApplet/Management/Audio/Audio.d.ts +16 -0
- package/es6/FrontApplet/Management/Audio/Audio.js +30 -22
- package/es6/FrontApplet/Management/Audio/Audio.js.map +1 -1
- package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.d.ts +4 -0
- package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.js +15 -22
- package/es6/FrontApplet/Management/AutoRecovery/AutoRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/AutoRecovery/IAutoRecovery.js +4 -1
- package/es6/FrontApplet/Management/AutoRecovery/IAutoRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/Debug/Debug.d.ts +19 -0
- package/es6/FrontApplet/Management/Debug/Debug.js +37 -30
- package/es6/FrontApplet/Management/Debug/Debug.js.map +1 -1
- package/es6/FrontApplet/Management/Firmware/Firmware.d.ts +37 -10
- package/es6/FrontApplet/Management/Firmware/Firmware.js +34 -30
- package/es6/FrontApplet/Management/Firmware/Firmware.js.map +1 -1
- package/es6/FrontApplet/Management/Firmware/IFirmware.d.ts +1 -2
- package/es6/FrontApplet/Management/IManagement.d.ts +3 -1
- package/es6/FrontApplet/Management/Management.d.ts +106 -15
- package/es6/FrontApplet/Management/Management.js +191 -113
- package/es6/FrontApplet/Management/Management.js.map +1 -1
- package/es6/FrontApplet/Management/Network/INetworkInfo.d.ts +1 -1
- package/es6/FrontApplet/Management/Network/Network.d.ts +56 -8
- package/es6/FrontApplet/Management/Network/Network.js +85 -67
- package/es6/FrontApplet/Management/Network/Network.js.map +1 -1
- package/es6/FrontApplet/Management/OS/OS.d.ts +20 -0
- package/es6/FrontApplet/Management/OS/OS.js +34 -27
- package/es6/FrontApplet/Management/OS/OS.js.map +1 -1
- package/es6/FrontApplet/Management/Package/Package.d.ts +20 -0
- package/es6/FrontApplet/Management/Package/Package.js +37 -22
- package/es6/FrontApplet/Management/Package/Package.js.map +1 -1
- package/es6/FrontApplet/Management/PeerRecovery/IPeerRecovery.js +4 -1
- package/es6/FrontApplet/Management/PeerRecovery/IPeerRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.d.ts +4 -0
- package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.js +15 -22
- package/es6/FrontApplet/Management/PeerRecovery/PeerRecovery.js.map +1 -1
- package/es6/FrontApplet/Management/Power/Power.d.ts +64 -0
- package/es6/FrontApplet/Management/Power/Power.js +160 -115
- package/es6/FrontApplet/Management/Power/Power.js.map +1 -1
- package/es6/FrontApplet/Management/Proxy/Proxy.d.ts +21 -0
- package/es6/FrontApplet/Management/Proxy/Proxy.js +41 -35
- package/es6/FrontApplet/Management/Proxy/Proxy.js.map +1 -1
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.d.ts +43 -0
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js +63 -39
- package/es6/FrontApplet/Management/RemoteControl/RemoteControl.js.map +1 -1
- package/es6/FrontApplet/Management/Screen/Screen.d.ts +127 -0
- package/es6/FrontApplet/Management/Screen/Screen.js +197 -89
- package/es6/FrontApplet/Management/Screen/Screen.js.map +1 -1
- package/es6/FrontApplet/Management/Security/Security.d.ts +20 -5
- package/es6/FrontApplet/Management/Security/Security.js +33 -31
- package/es6/FrontApplet/Management/Security/Security.js.map +1 -1
- package/es6/FrontApplet/Management/Time/Time.d.ts +31 -5
- package/es6/FrontApplet/Management/Time/Time.js +49 -40
- package/es6/FrontApplet/Management/Time/Time.js.map +1 -1
- package/es6/FrontApplet/Management/Wifi/IWifiEvent.d.ts +18 -0
- package/es6/FrontApplet/Management/Wifi/IWifiEvent.js +19 -1
- package/es6/FrontApplet/Management/Wifi/IWifiEvent.js.map +1 -1
- package/es6/FrontApplet/Management/Wifi/Wifi.d.ts +108 -7
- package/es6/FrontApplet/Management/Wifi/Wifi.js +162 -86
- package/es6/FrontApplet/Management/Wifi/Wifi.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/DeviceHelper.js +2 -2
- package/es6/FrontApplet/Management/helpers/DeviceHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/SecurityHelper.js +8 -6
- package/es6/FrontApplet/Management/helpers/SecurityHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/TimerHelper.js +2 -2
- package/es6/FrontApplet/Management/helpers/TimerHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/UpgradeHelper.js +35 -3
- package/es6/FrontApplet/Management/helpers/UpgradeHelper.js.map +1 -1
- package/es6/FrontApplet/Management/helpers/VideoHelper.js +1 -1
- package/es6/FrontApplet/Management/helpers/VideoHelper.js.map +1 -1
- package/es6/FrontApplet/Monitors/Monitors.d.ts +9 -0
- package/es6/FrontApplet/Monitors/Monitors.js +16 -16
- package/es6/FrontApplet/Monitors/Monitors.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/CodesMDC.js +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/CodesMDC.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.d.ts +51 -2
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.js +79 -38
- package/es6/FrontApplet/NativeCommands/MDC/Mdc.js.map +1 -1
- package/es6/FrontApplet/NativeCommands/NativeCommands.d.ts +4 -0
- package/es6/FrontApplet/NativeCommands/NativeCommands.js +12 -2
- package/es6/FrontApplet/NativeCommands/NativeCommands.js.map +1 -1
- package/es6/FrontApplet/OSD/OSD.d.ts +9 -0
- package/es6/FrontApplet/OSD/OSD.js +15 -15
- package/es6/FrontApplet/OSD/OSD.js.map +1 -1
- package/es6/FrontApplet/Offline/Cache/Cache.d.ts +91 -2
- package/es6/FrontApplet/Offline/Cache/Cache.js +192 -130
- package/es6/FrontApplet/Offline/Cache/Cache.js.map +1 -1
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.d.ts +1 -1
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.js +17 -25
- package/es6/FrontApplet/Offline/Flags/AppendFlagController.js.map +1 -1
- package/es6/FrontApplet/Offline/Flags/IFlags.d.ts +4 -4
- package/es6/FrontApplet/Offline/IAddFont.d.ts +3 -1
- package/es6/FrontApplet/Offline/IAddFont.js.map +1 -1
- package/es6/FrontApplet/Offline/ISaveFile.js +5 -2
- package/es6/FrontApplet/Offline/ISaveFile.js.map +1 -1
- package/es6/FrontApplet/Offline/LoadFile/CssLoadFileController.js +2 -1
- package/es6/FrontApplet/Offline/LoadFile/CssLoadFileController.js.map +1 -1
- package/es6/FrontApplet/Offline/LoadFile/JavascriptLoadFileController.js +2 -1
- package/es6/FrontApplet/Offline/LoadFile/JavascriptLoadFileController.js.map +1 -1
- package/es6/FrontApplet/Offline/Offline.d.ts +75 -4
- package/es6/FrontApplet/Offline/Offline.js +116 -56
- package/es6/FrontApplet/Offline/Offline.js.map +1 -1
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.d.ts +19 -1
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js +41 -29
- package/es6/FrontApplet/ProofOfPlay/ProofOfPlay.js.map +1 -1
- package/es6/FrontApplet/Sensors/Proximity.d.ts +4 -3
- package/es6/FrontApplet/Sensors/Proximity.js +12 -4
- package/es6/FrontApplet/Sensors/Proximity.js.map +1 -1
- package/es6/FrontApplet/Sensors/Sensors.d.ts +2 -0
- package/es6/FrontApplet/Sensors/Sensors.js +9 -2
- package/es6/FrontApplet/Sensors/Sensors.js.map +1 -1
- package/es6/FrontApplet/Stream/IStream.d.ts +10 -10
- package/es6/FrontApplet/Stream/Stream.d.ts +130 -15
- package/es6/FrontApplet/Stream/Stream.js +229 -130
- package/es6/FrontApplet/Stream/Stream.js.map +1 -1
- package/es6/FrontApplet/Stream/StreamProtocol.js.map +1 -1
- package/es6/FrontApplet/Sync/Sync.d.ts +152 -6
- package/es6/FrontApplet/Sync/Sync.js +196 -112
- package/es6/FrontApplet/Sync/Sync.js.map +1 -1
- package/es6/FrontApplet/Sync/syncEvents.d.ts +3 -1
- package/es6/FrontApplet/Sync/syncMessages.js +1 -1
- package/es6/FrontApplet/Sync/syncMessages.js.map +1 -1
- package/es6/FrontApplet/Timing/Timing.d.ts +1 -0
- package/es6/FrontApplet/Timing/Timing.js +9 -2
- package/es6/FrontApplet/Timing/Timing.js.map +1 -1
- package/es6/FrontApplet/Timing/Triggers/ITimingTriggersMessage.d.ts +1 -1
- package/es6/FrontApplet/Timing/Triggers/Triggers.d.ts +9 -0
- package/es6/FrontApplet/Timing/Triggers/Triggers.js +16 -18
- package/es6/FrontApplet/Timing/Triggers/Triggers.js.map +1 -1
- package/es6/FrontApplet/Touch/Touch.d.ts +3 -0
- package/es6/FrontApplet/Touch/Touch.js +13 -3
- package/es6/FrontApplet/Touch/Touch.js.map +1 -1
- package/es6/FrontApplet/Validate/Validate.js +14 -11
- package/es6/FrontApplet/Validate/Validate.js.map +1 -1
- package/es6/FrontApplet/Validate/ValidateObjectInterface.js +7 -2
- package/es6/FrontApplet/Validate/ValidateObjectInterface.js.map +1 -1
- package/es6/FrontApplet/Video/IOptions.d.ts +8 -1
- package/es6/FrontApplet/Video/IVideo.d.ts +8 -8
- package/es6/FrontApplet/Video/IVideoEvent.js +3 -3
- package/es6/FrontApplet/Video/IVideoEvent.js.map +1 -1
- package/es6/FrontApplet/Video/Video.d.ts +84 -12
- package/es6/FrontApplet/Video/Video.js +161 -102
- package/es6/FrontApplet/Video/Video.js.map +1 -1
- package/es6/FrontApplet/createFrontApplet.js +5 -2
- package/es6/FrontApplet/createFrontApplet.js.map +1 -1
- package/es6/Monitoring/Display/handleDisplayRequests.d.ts +2 -2
- package/es6/Monitoring/Display/handleDisplayRequests.js +5 -15
- package/es6/Monitoring/Display/handleDisplayRequests.js.map +1 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.d.ts +10 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.js +3 -1
- package/es6/Monitoring/FileSystem/fileSystemCommands.js.map +1 -1
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.d.ts +2 -2
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.js +41 -45
- package/es6/Monitoring/FileSystem/handleFileSystemRequests.js.map +1 -1
- package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.d.ts +2 -2
- package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.js +4 -14
- package/es6/Monitoring/Html/handleHtmlSnapshotTakingRequests.js.map +1 -1
- package/es6/Monitoring/Management/App/handleApplicationRequests.d.ts +2 -2
- package/es6/Monitoring/Management/App/handleApplicationRequests.js +9 -19
- package/es6/Monitoring/Management/App/handleApplicationRequests.js.map +1 -1
- package/es6/Monitoring/Management/Audio/handleAudioRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Audio/handleAudioRequests.js +7 -17
- package/es6/Monitoring/Management/Audio/handleAudioRequests.js.map +1 -1
- package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.d.ts +2 -2
- package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.js +7 -17
- package/es6/Monitoring/Management/AutoRecovery/handleAutoRecoveryRequests.js.map +1 -1
- package/es6/Monitoring/Management/Debug/handleDebugRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Debug/handleDebugRequests.js +9 -19
- package/es6/Monitoring/Management/Debug/handleDebugRequests.js.map +1 -1
- package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.js +11 -21
- package/es6/Monitoring/Management/Network/handleManagementNetworkRequests.js.map +1 -1
- package/es6/Monitoring/Management/Os/managementOsRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Os/managementOsRequests.js +9 -19
- package/es6/Monitoring/Management/Os/managementOsRequests.js.map +1 -1
- package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.d.ts +2 -2
- package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.js +7 -17
- package/es6/Monitoring/Management/PeerRecovery/handlePeerRecoveryRequests.js.map +1 -1
- package/es6/Monitoring/Management/Power/handlePowerRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Power/handlePowerRequests.js +19 -29
- package/es6/Monitoring/Management/Power/handlePowerRequests.js.map +1 -1
- package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.d.ts +2 -2
- package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.js +15 -25
- package/es6/Monitoring/Management/RemoteControl/handleRemoteControlRequests.js.map +1 -1
- package/es6/Monitoring/Management/Screen/handleScreenRequests.d.ts +2 -2
- package/es6/Monitoring/Management/Screen/handleScreenRequests.js +19 -29
- package/es6/Monitoring/Management/Screen/handleScreenRequests.js.map +1 -1
- package/es6/Monitoring/Management/Security/handleSecurityCommands.d.ts +2 -2
- package/es6/Monitoring/Management/Security/handleSecurityCommands.js +9 -19
- package/es6/Monitoring/Management/Security/handleSecurityCommands.js.map +1 -1
- package/es6/Monitoring/Management/Time/handleTimeCommands.d.ts +2 -2
- package/es6/Monitoring/Management/Time/handleTimeCommands.js +9 -19
- package/es6/Monitoring/Management/Time/handleTimeCommands.js.map +1 -1
- package/es6/Monitoring/Management/handleManagementRequests.d.ts +2 -2
- package/es6/Monitoring/Management/handleManagementRequests.js +23 -33
- package/es6/Monitoring/Management/handleManagementRequests.js.map +1 -1
- package/es6/Monitoring/{Montoring.d.ts → Monitoring.d.ts} +1 -0
- package/es6/Monitoring/{Montoring.js → Monitoring.js} +12 -23
- package/es6/Monitoring/Monitoring.js.map +1 -0
- package/es6/Monitoring/NativeCommands/handleNativeCommands.d.ts +2 -2
- package/es6/Monitoring/NativeCommands/handleNativeCommands.js +5 -15
- package/es6/Monitoring/NativeCommands/handleNativeCommands.js.map +1 -1
- package/es6/Monitoring/OSD/handleOsdRequests.d.ts +2 -2
- package/es6/Monitoring/OSD/handleOsdRequests.js +5 -15
- package/es6/Monitoring/OSD/handleOsdRequests.js.map +1 -1
- package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.d.ts +2 -2
- package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.js +23 -33
- package/es6/Monitoring/Offline/Cache/handleOfflineCacheRequests.js.map +1 -1
- package/es6/Monitoring/Video/handleVideoRequests.d.ts +2 -2
- package/es6/Monitoring/Video/handleVideoRequests.js +36 -9
- package/es6/Monitoring/Video/handleVideoRequests.js.map +1 -1
- package/es6/Monitoring/handleMonitoringRequests.d.ts +2 -2
- package/es6/Monitoring/handleMonitoringRequests.js +6 -16
- package/es6/Monitoring/handleMonitoringRequests.js.map +1 -1
- package/es6/Sensors/IButton.js +1 -1
- package/es6/Sensors/IButton.js.map +1 -1
- package/es6/Sensors/IRfidAntenna.js +1 -1
- package/es6/Sensors/IRfidAntenna.js.map +1 -1
- package/es6/Util/Console/enhancer.js +1 -2
- package/es6/Util/Console/enhancer.js.map +1 -1
- package/es6/bundle.d.ts +1 -1
- package/es6/bundle.js +6 -3
- package/es6/bundle.js.map +1 -1
- package/es6/fpath.js +34 -1
- package/es6/fpath.js.map +1 -1
- package/es6/utils/types.d.ts +1 -0
- package/es6/{FrontApplet/Input/IKeyUpEventListener.js → utils/types.js} +1 -1
- package/es6/utils/types.js.map +1 -0
- package/package.json +27 -25
- package/CHANGELOG.md +0 -484
- package/docs/applet-basics.md +0 -272
- package/docs/content/js-applet-resources.md +0 -154
- package/docs/content/js-browser.md +0 -163
- package/docs/content/js-command.md +0 -154
- package/docs/content/js-debug.md +0 -36
- package/docs/content/js-device-info.md +0 -56
- package/docs/content/js-display.md +0 -56
- package/docs/content/js-file-system.md +0 -670
- package/docs/content/js-fonts.md +0 -115
- package/docs/content/js-hardware.md +0 -55
- package/docs/content/js-iframes.md +0 -66
- package/docs/content/js-input.md +0 -71
- package/docs/content/js-offline-cache-media-files.md +0 -257
- package/docs/content/js-offline-cache-simple-data.md +0 -129
- package/docs/content/js-osd.md +0 -32
- package/docs/content/js-proof-of-play.md +0 -60
- package/docs/content/js-sensors.md +0 -70
- package/docs/content/js-serial.md +0 -165
- package/docs/content/js-sync-playback.md +0 -384
- package/docs/content/js-video-inputs-internal-ports.md +0 -131
- package/docs/content/js-video-stream.md +0 -618
- package/docs/content/js-video.md +0 -232
- package/docs/management/js-management-application.md +0 -107
- package/docs/management/js-management-audio.md +0 -44
- package/docs/management/js-management-debug.md +0 -40
- package/docs/management/js-management-firmware.md +0 -93
- package/docs/management/js-management-management.md +0 -178
- package/docs/management/js-management-monitoring-commands.md +0 -107
- package/docs/management/js-management-monitors.md +0 -55
- package/docs/management/js-management-native-commands-mdc.md +0 -90
- package/docs/management/js-management-network.md +0 -223
- package/docs/management/js-management-os.md +0 -62
- package/docs/management/js-management-package.md +0 -48
- package/docs/management/js-management-power.md +0 -175
- package/docs/management/js-management-proxy.md +0 -81
- package/docs/management/js-management-remote-control.md +0 -58
- package/docs/management/js-management-screen.md +0 -225
- package/docs/management/js-management-security.md +0 -71
- package/docs/management/js-management-time.md +0 -161
- package/docs/management/js-management-wifi.md +0 -341
- package/es6/FrontApplet/Command/ICommandEventListener.d.ts +0 -6
- package/es6/FrontApplet/Command/ICommandEventListener.js +0 -3
- package/es6/FrontApplet/Command/ICommandEventListener.js.map +0 -1
- package/es6/FrontApplet/Input/IKeyUpEventListener.d.ts +0 -5
- package/es6/FrontApplet/Input/IKeyUpEventListener.js.map +0 -1
- package/es6/FrontApplet/Management/Firmware/FirmwareType.d.ts +0 -4
- package/es6/FrontApplet/Management/Firmware/FirmwareType.js +0 -9
- package/es6/FrontApplet/Management/Firmware/FirmwareType.js.map +0 -1
- package/es6/FrontApplet/Stream/streamListeners.d.ts +0 -10
- package/es6/FrontApplet/Stream/streamListeners.js.map +0 -1
- package/es6/FrontApplet/Video/IVideoEventListener.d.ts +0 -5
- package/es6/FrontApplet/Video/IVideoEventListener.js +0 -3
- package/es6/FrontApplet/Video/IVideoEventListener.js.map +0 -1
- package/es6/Monitoring/Montoring.js.map +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# debug
|
|
2
|
+
|
|
3
|
+
The `sos.management.debug` API groups together method for working with native debug mode.
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
### disable()
|
|
8
|
+
|
|
9
|
+
The `enable()` method disables the [native debug](https://docs.signageos.io/hc/en-us/articles/4413935787154-Applet-Native-Device-Debug) mode.
|
|
10
|
+
|
|
11
|
+
```ts expandable
|
|
12
|
+
disable(): Promise<void>;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
<Separator />
|
|
16
|
+
|
|
17
|
+
### enable()
|
|
18
|
+
|
|
19
|
+
The `enable()` method enables the [native debug](https://docs.signageos.io/hc/en-us/articles/4413935787154-Applet-Native-Device-Debug) mode.
|
|
20
|
+
|
|
21
|
+
```ts expandable
|
|
22
|
+
enable(): Promise<void>;
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<Separator />
|
|
26
|
+
|
|
27
|
+
### isEnabled()
|
|
28
|
+
|
|
29
|
+
The `isEnabled()` method returns whether the [native debug](https://docs.signageos.io/hc/en-us/articles/4413935787154-Applet-Native-Device-Debug) mode is enabled.
|
|
30
|
+
|
|
31
|
+
```ts expandable
|
|
32
|
+
isEnabled(): Promise<boolean>;
|
|
33
|
+
```
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# firmware
|
|
2
|
+
|
|
3
|
+
The `sos.management.firmware` API groups together methods for working with the firmware of the device.
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
### getType()
|
|
8
|
+
|
|
9
|
+
The `getType()` method returns the type of the firmware currently installed on the device.
|
|
10
|
+
|
|
11
|
+
This information, when combined with firmware version, can be used to identify a correct firmware image to install on the current device.
|
|
12
|
+
|
|
13
|
+
```ts expandable
|
|
14
|
+
getType(): Promise<string>;
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
<Separator />
|
|
18
|
+
|
|
19
|
+
### getVersion()
|
|
20
|
+
|
|
21
|
+
The `getVersion()` method returns the version of the firmware currently installed on the device.
|
|
22
|
+
|
|
23
|
+
```ts expandable
|
|
24
|
+
getVersion(): Promise<string>;
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
<Separator />
|
|
28
|
+
|
|
29
|
+
### upgrade(baseUrl, version)
|
|
30
|
+
|
|
31
|
+
The `upgrade(baseUrl, version)` does the same as `upgrade(version, baseUrl)`.
|
|
32
|
+
|
|
33
|
+
```ts expandable
|
|
34
|
+
upgrade(baseUrl: string, version: string): Promise<void>;
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
#### Params
|
|
38
|
+
|
|
39
|
+
| Name | Type | Description |
|
|
40
|
+
|-----------|----------|--------------------------------------------------|
|
|
41
|
+
| `baseUrl` | `string` | The server URL where firmware files are located. |
|
|
42
|
+
| `version` | `string` | The version of the firmware being installed. |
|
|
43
|
+
|
|
44
|
+
<Separator />
|
|
45
|
+
|
|
46
|
+
### upgrade(fwUri)
|
|
47
|
+
|
|
48
|
+
The `upgrade(fwUri)` method initializes a firmware upgrade. Open users can upgrade fw passing FQN
|
|
49
|
+
uri where the firmware main file is located.
|
|
50
|
+
|
|
51
|
+
This file type/extension differs for every platform. E.g.:
|
|
52
|
+
- SSSP: http://example.com/fw/T-0.0.0.msd
|
|
53
|
+
- Tizen: http://example.com/fw/T-0.0.0.bem
|
|
54
|
+
- Webos: http://example.com/fw/0.0.0.epk
|
|
55
|
+
- Brightsign: http://example.com/fw/hd2-0.0.0.bsfw
|
|
56
|
+
- Linux: http://example.com/fw/rpi-0.0.0.img.zip
|
|
57
|
+
- Android: http://example.com/fw/FB-00.0.0.zip
|
|
58
|
+
|
|
59
|
+
```ts expandable
|
|
60
|
+
upgrade(fwUri: string): Promise<void>;
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
#### Params
|
|
64
|
+
|
|
65
|
+
| Name | Type | Description |
|
|
66
|
+
|---------|----------|--------------------------------------------------|
|
|
67
|
+
| `fwUri` | `string` | FQN uri where the firmware main file is located. |
|
|
68
|
+
|
|
69
|
+
<Separator />
|
|
70
|
+
|
|
71
|
+
### upgrade(version, baseUrl)
|
|
72
|
+
|
|
73
|
+
The `upgrade(version, baseUrl?)` method initializes a firmware upgrade using version and baseUrl. Platform users can install general
|
|
74
|
+
firmware version directly with passing just version number. Optionally, the baseUrl can be passed as argument to specify server where
|
|
75
|
+
the firmware files are accessible.
|
|
76
|
+
|
|
77
|
+
```ts expandable
|
|
78
|
+
upgrade(version: string, baseUrl?: string): Promise<void>;
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
#### Params
|
|
82
|
+
|
|
83
|
+
| Name | Type | Description |
|
|
84
|
+
|------------------------|----------|-------------------------------------------------------------------------------------------------------|
|
|
85
|
+
| `version` | `string` | The version of the firmware being installed. |
|
|
86
|
+
| `baseUrl` *(optional)* | `string` | Optional server URL where firmware files are located.<br/>(Default value: `"https://2.signageos.io"`) |
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
# sos.management
|
|
2
|
+
|
|
3
|
+
The `sos.management` API group provides methods for managing the device. Through this API things like device firmware,
|
|
4
|
+
battery status, brightness, network information, remote control, power, time or volume can be monitored.
|
|
5
|
+
|
|
6
|
+
## Methods
|
|
7
|
+
|
|
8
|
+
### factoryReset()
|
|
9
|
+
|
|
10
|
+
The `factoryReset()` method initializes the factory reset of the device.
|
|
11
|
+
|
|
12
|
+
```ts expandable
|
|
13
|
+
factoryReset(): Promise<void>;
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
<Separator />
|
|
17
|
+
|
|
18
|
+
### getBatteryStatus()
|
|
19
|
+
|
|
20
|
+
The `getBatteryStatus()` method returns information about the battery of the device.
|
|
21
|
+
|
|
22
|
+
```ts expandable
|
|
23
|
+
getBatteryStatus(): Promise<IBatteryStatus>;
|
|
24
|
+
// show-more
|
|
25
|
+
interface IBatteryStatus {
|
|
26
|
+
readonly chargeType: string;
|
|
27
|
+
readonly isCharging: boolean;
|
|
28
|
+
readonly lastChargingTime: Date;
|
|
29
|
+
readonly percentage: number;
|
|
30
|
+
readonly updatedAt: Date;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
<Separator />
|
|
36
|
+
|
|
37
|
+
### getBrand()
|
|
38
|
+
|
|
39
|
+
The `getBrand()` method returns the manufacturer brand of the device.
|
|
40
|
+
|
|
41
|
+
```ts expandable
|
|
42
|
+
getBrand(): Promise<string>;
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
<Separator />
|
|
46
|
+
|
|
47
|
+
### getExtendedManagementUrl()
|
|
48
|
+
|
|
49
|
+
The `getExtendedManagementUrl()` method returns the management url of the device.
|
|
50
|
+
|
|
51
|
+
:::info
|
|
52
|
+
|
|
53
|
+
This is currently only implemented for the MagicInfo on Tizen platform.
|
|
54
|
+
|
|
55
|
+
:::
|
|
56
|
+
|
|
57
|
+
```ts expandable
|
|
58
|
+
getExtendedManagementUrl(): Promise<string | null>;
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
<Separator />
|
|
62
|
+
|
|
63
|
+
### getModel()
|
|
64
|
+
|
|
65
|
+
The `getModel()` method returns the model of the device.
|
|
66
|
+
|
|
67
|
+
```ts expandable
|
|
68
|
+
getModel(): Promise<string>;
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
<Separator />
|
|
72
|
+
|
|
73
|
+
### getSerialNumber()
|
|
74
|
+
|
|
75
|
+
The `getSerialNumber()` method returns the serial number of the device.
|
|
76
|
+
|
|
77
|
+
```ts expandable
|
|
78
|
+
getSerialNumber(): Promise<string>;
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
<Separator />
|
|
82
|
+
|
|
83
|
+
### getTemperature()
|
|
84
|
+
|
|
85
|
+
The `getTemperature()` method returns the temperature of the device (in 0-100 range of degrees Celsius).
|
|
86
|
+
|
|
87
|
+
```ts expandable
|
|
88
|
+
getTemperature(): Promise<number>;
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
<Separator />
|
|
92
|
+
|
|
93
|
+
### isHardwareAccelerationEnabled()
|
|
94
|
+
|
|
95
|
+
The `isHardwareAccelerationEnabled()` method returns whether hardware acceleration is enabled.
|
|
96
|
+
|
|
97
|
+
```ts expandable
|
|
98
|
+
isHardwareAccelerationEnabled(): Promise<boolean>;
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
<Separator />
|
|
102
|
+
|
|
103
|
+
### resetSettings()
|
|
104
|
+
|
|
105
|
+
The `resetSettings()` method initializes the reset of the specific device settings.
|
|
106
|
+
|
|
107
|
+
:::info
|
|
108
|
+
|
|
109
|
+
This is currently only implemented on Linux platform.
|
|
110
|
+
|
|
111
|
+
:::
|
|
112
|
+
|
|
113
|
+
```ts expandable
|
|
114
|
+
resetSettings(): Promise<void>;
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
<Separator />
|
|
118
|
+
|
|
119
|
+
### setExtendedManagementUrl()
|
|
120
|
+
|
|
121
|
+
The `getExtendedManagementUrl()` set the management url of the device.
|
|
122
|
+
|
|
123
|
+
:::info
|
|
124
|
+
|
|
125
|
+
This is currently only implemented for the MagicInfo on Tizen platform.
|
|
126
|
+
|
|
127
|
+
:::
|
|
128
|
+
|
|
129
|
+
```ts expandable
|
|
130
|
+
setExtendedManagementUrl(url: string | null): Promise<void>;
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
#### Params
|
|
134
|
+
|
|
135
|
+
| Name | Type | Description |
|
|
136
|
+
|-------|------------------|----------------------------|
|
|
137
|
+
| `url` | `string \| null` | The management URL to set. |
|
|
138
|
+
|
|
139
|
+
<Separator />
|
|
140
|
+
|
|
141
|
+
### setHardwareAcceleration()
|
|
142
|
+
|
|
143
|
+
The `setHardwareAcceleration()` method enables or disables hardware acceleration.
|
|
144
|
+
|
|
145
|
+
```ts expandable
|
|
146
|
+
setHardwareAcceleration(enabled: boolean): Promise<void>;
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
#### Params
|
|
150
|
+
|
|
151
|
+
| Name | Type | Description |
|
|
152
|
+
|-----------|-----------|--------------------------------------------------|
|
|
153
|
+
| `enabled` | `boolean` | Whether hardware acceleration should be enabled. |
|
|
154
|
+
|
|
155
|
+
<Separator />
|
|
156
|
+
|
|
157
|
+
### supports()
|
|
158
|
+
|
|
159
|
+
The `supports()` method determines whether a queried capability is supported.
|
|
160
|
+
|
|
161
|
+
```ts expandable
|
|
162
|
+
supports(capability: ManagementCapability): Promise<boolean>;
|
|
163
|
+
// show-more
|
|
164
|
+
type ManagementCapability = 'MODEL' | 'SERIAL_NUMBER' | 'BRAND' | 'OS_VERSION' | 'BATTERY_STATUS' | 'STORAGE_UNITS' | 'TEMPERATURE' | 'SCREENSHOT_UPLOAD' | 'NETWORK_INFO' | 'WIFI' | 'WIFI_SCAN' | 'WIFI_AP' | 'WIFI_STRENGTH' | 'TIMERS_PROPRIETARY' | 'BRIGHTNESS_SCHEDULING' | 'TIMERS_NATIVE' | 'SET_BRIGHTNESS' | 'GET_BRIGHTNESS' | 'SCREEN_RESIZE' | 'SET_TIME' | 'SET_TIMEZONE' | 'GET_TIMEZONE' | 'NTP_TIME' | 'APP_UPGRADE' | 'FIRMWARE_UPGRADE' | 'PACKAGE_INSTALL' | 'SET_VOLUME' | 'GET_VOLUME' | 'SET_REMOTE_CONTROL_ENABLED' | 'SET_DEBUG' | 'SYSTEM_REBOOT' | 'APP_RESTART' | 'DISPLAY_POWER' | 'SERVLET' | 'HARDWARE_LED_SET_COLOR' | 'PROXIMITY_SENSOR' | 'FACTORY_RESET' | 'ORIENTATION_LANDSCAPE' | 'ORIENTATION_PORTRAIT' | 'ORIENTATION_LANDSCAPE_FLIPPED' | 'ORIENTATION_PORTRAIT_FLIPPED' | 'ORIENTATION_AUTO' | 'SCHEDULE_POWER_ACTION' | 'EXTENDED_MANAGEMENT' | 'SYSTEM_CPU' | 'SYSTEM_MEMORY' | 'PROXY' | 'AUTO_RECOVERY' | 'PEER_RECOVERY' | 'FILE_SYSTEM_WIPEOUT' | 'REMOTE_DESKTOP' | 'HOTEL_MODE' | 'VPN' | 'CUSTOM_SCRIPTS' | 'NATIVE_COMMANDS_MDC' | 'DEVICE_OWNER' | 'ACCESSIBILITY_SERVICE' | 'DISPLAY_MANAGER' | 'SECRETS' | 'HARDWARE_ACCELERATION' | 'WIFI_COUNTRY' | AnyString;
|
|
165
|
+
|
|
166
|
+
type AnyString = string & {};
|
|
167
|
+
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
#### Params
|
|
171
|
+
|
|
172
|
+
| Name | Type | Description |
|
|
173
|
+
|--------------|------------------------|--------------------------------------|
|
|
174
|
+
| `capability` | `ManagementCapability` | The capability to check for support. |
|
|
175
|
+
|
|
176
|
+
<Separator />
|
|
177
|
+
|
|
178
|
+
### ~getNetworkInfo()~
|
|
179
|
+
|
|
180
|
+
:::danger
|
|
181
|
+
|
|
182
|
+
This method was deprecated. Use `sos.management.network.listInterfaces()` instead.
|
|
183
|
+
|
|
184
|
+
:::
|
|
185
|
+
|
|
186
|
+
```ts expandable
|
|
187
|
+
getNetworkInfo(): Promise<INetworkInfo>;
|
|
188
|
+
// show-more
|
|
189
|
+
/**
|
|
190
|
+
* @deprecated use `INetworkInterface` instead
|
|
191
|
+
*/
|
|
192
|
+
interface INetworkInfo {
|
|
193
|
+
localAddress: string;
|
|
194
|
+
ethernetMacAddress: string;
|
|
195
|
+
wifiMacAddress: string;
|
|
196
|
+
activeInterface: NetworkInterface;
|
|
197
|
+
gateway?: string;
|
|
198
|
+
netmask?: string;
|
|
199
|
+
dns?: string[];
|
|
200
|
+
interfaceName?: string;
|
|
201
|
+
/**
|
|
202
|
+
* Number in range from 0 to 100 (percentage)
|
|
203
|
+
* mapped from -90 dBm unusable signal
|
|
204
|
+
* to -30 dBm excellent signal.
|
|
205
|
+
*/
|
|
206
|
+
wifiStrength?: number;
|
|
207
|
+
wifiSsid?: string;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
type NetworkInterface = 'wifi' | 'ethernet';
|
|
211
|
+
|
|
212
|
+
```
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
# network
|
|
2
|
+
|
|
3
|
+
The `sos.management.network` API groups together methods for networking.
|
|
4
|
+
|
|
5
|
+
:::info
|
|
6
|
+
|
|
7
|
+
Use `sos.management.supports('NETWORK_INFO')` to check if the device supports managing the network setup.
|
|
8
|
+
|
|
9
|
+
:::
|
|
10
|
+
|
|
11
|
+
## Methods
|
|
12
|
+
|
|
13
|
+
### disableInterface()
|
|
14
|
+
|
|
15
|
+
The `disableInterface()` disables a network interface.
|
|
16
|
+
|
|
17
|
+
:::warning
|
|
18
|
+
|
|
19
|
+
Don't use this method to disable Wi-Fi. Use [Wi-Fi API](./wifi) to enable/disable Wi-Fi.
|
|
20
|
+
|
|
21
|
+
:::
|
|
22
|
+
|
|
23
|
+
```ts expandable
|
|
24
|
+
disableInterface(interfaceName: string): Promise<void>;
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
#### Params
|
|
28
|
+
|
|
29
|
+
| Name | Type | Description |
|
|
30
|
+
|-----------------|----------|----------------------------------------------------------------------------------------------------|
|
|
31
|
+
| `interfaceName` | `string` | The interface name which can be retrieved from the list of interfaces returned by listInterfaces() |
|
|
32
|
+
|
|
33
|
+
<Separator />
|
|
34
|
+
|
|
35
|
+
### listInterfaces()
|
|
36
|
+
|
|
37
|
+
The `listInterface()` method returns list of all network interfaces, and their information like MAC address, IP address, etc. Wifi
|
|
38
|
+
connection strength is described as percentage in range from 0 to 100, linearly converted from dBm -90 to -30 respectively based on
|
|
39
|
+
platform.
|
|
40
|
+
|
|
41
|
+
```ts expandable
|
|
42
|
+
listInterfaces(): Promise<INetworkInterface[]>;
|
|
43
|
+
// show-more
|
|
44
|
+
interface INetworkInterface {
|
|
45
|
+
type: NetworkInterface;
|
|
46
|
+
name: string;
|
|
47
|
+
macAddress: string;
|
|
48
|
+
localAddress?: string;
|
|
49
|
+
gateway?: string;
|
|
50
|
+
netmask?: string;
|
|
51
|
+
dns?: string[];
|
|
52
|
+
disabled?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Number in range from 0 to 100 (percentage)
|
|
55
|
+
* mapped from -90 dBm unusable signal
|
|
56
|
+
* to -30 dBm excellent signal.
|
|
57
|
+
*/
|
|
58
|
+
wifiStrength?: number;
|
|
59
|
+
wifiSsid?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
type NetworkInterface = 'wifi' | 'ethernet';
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
<Separator />
|
|
67
|
+
|
|
68
|
+
### setDHCP(interfaceName)
|
|
69
|
+
|
|
70
|
+
The `setDHCP()` method configures a network interface to use DHCP.
|
|
71
|
+
|
|
72
|
+
:::warning
|
|
73
|
+
|
|
74
|
+
Wi-Fi interface can be configured with this method but it has to be first enabled via the [Wi-Fi API](./wifi#enableClient).
|
|
75
|
+
|
|
76
|
+
:::
|
|
77
|
+
|
|
78
|
+
```ts expandable
|
|
79
|
+
setDHCP(interfaceName: string): Promise<void>;
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
#### Params
|
|
83
|
+
|
|
84
|
+
| Name | Type | Description |
|
|
85
|
+
|-----------------|----------|----------------------------------------------------------------------------------------------------|
|
|
86
|
+
| `interfaceName` | `string` | The interface name which can be retrieved from the list of interfaces returned by listInterfaces() |
|
|
87
|
+
|
|
88
|
+
<Separator />
|
|
89
|
+
|
|
90
|
+
### setManual(interfaceName, options)
|
|
91
|
+
|
|
92
|
+
The `setManual()` method manually configures a network interface.
|
|
93
|
+
|
|
94
|
+
:::warning
|
|
95
|
+
|
|
96
|
+
Wi-Fi interface can be configured with this method but it has to be first enabled via the [Wi-Fi API](./wifi#enableClient).
|
|
97
|
+
|
|
98
|
+
:::
|
|
99
|
+
|
|
100
|
+
```ts expandable
|
|
101
|
+
setManual(interfaceName: string, options: INetworkOptions): Promise<void>;
|
|
102
|
+
// show-more
|
|
103
|
+
interface INetworkOptions {
|
|
104
|
+
localAddress: string;
|
|
105
|
+
gateway: string;
|
|
106
|
+
netmask: string;
|
|
107
|
+
dns: string[];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
#### Params
|
|
113
|
+
|
|
114
|
+
| Name | Type | Description |
|
|
115
|
+
|-----------------|-------------------|----------------------------------------------------------------------------------------------------|
|
|
116
|
+
| `interfaceName` | `string` | The interface name which can be retrieved from the list of interfaces returned by listInterfaces() |
|
|
117
|
+
| `options` | `INetworkOptions` | The network configuration options. |
|
|
118
|
+
|
|
119
|
+
<Separator />
|
|
120
|
+
|
|
121
|
+
### ~getActiveInfo()~
|
|
122
|
+
|
|
123
|
+
:::danger
|
|
124
|
+
|
|
125
|
+
This method was deprecated. Use `sos.management.network.listInterfaces()` instead.
|
|
126
|
+
|
|
127
|
+
:::
|
|
128
|
+
|
|
129
|
+
```ts expandable
|
|
130
|
+
getActiveInfo(): Promise<INetworkInfo>;
|
|
131
|
+
// show-more
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated use `INetworkInterface` instead
|
|
134
|
+
*/
|
|
135
|
+
interface INetworkInfo {
|
|
136
|
+
localAddress: string;
|
|
137
|
+
ethernetMacAddress: string;
|
|
138
|
+
wifiMacAddress: string;
|
|
139
|
+
activeInterface: NetworkInterface;
|
|
140
|
+
gateway?: string;
|
|
141
|
+
netmask?: string;
|
|
142
|
+
dns?: string[];
|
|
143
|
+
interfaceName?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Number in range from 0 to 100 (percentage)
|
|
146
|
+
* mapped from -90 dBm unusable signal
|
|
147
|
+
* to -30 dBm excellent signal.
|
|
148
|
+
*/
|
|
149
|
+
wifiStrength?: number;
|
|
150
|
+
wifiSsid?: string;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
type NetworkInterface = 'wifi' | 'ethernet';
|
|
154
|
+
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
<Separator />
|
|
158
|
+
|
|
159
|
+
### ~setDHCP(networkInterface)~
|
|
160
|
+
|
|
161
|
+
:::danger
|
|
162
|
+
|
|
163
|
+
This method was deprecated. Use `sos.management.network.setDHCP(interfaceName)` instead.
|
|
164
|
+
|
|
165
|
+
:::
|
|
166
|
+
|
|
167
|
+
```ts expandable
|
|
168
|
+
setDHCP(networkInterface: NetworkInterface): Promise<void>;
|
|
169
|
+
// show-more
|
|
170
|
+
type NetworkInterface = 'wifi' | 'ethernet';
|
|
171
|
+
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
<Separator />
|
|
175
|
+
|
|
176
|
+
### ~setManual(options)~
|
|
177
|
+
|
|
178
|
+
:::danger
|
|
179
|
+
|
|
180
|
+
This method was deprecated. Use `sos.management.network.setManual(interfaceName, options)` instead.
|
|
181
|
+
|
|
182
|
+
:::
|
|
183
|
+
|
|
184
|
+
```ts expandable
|
|
185
|
+
setManual(options: INetworkOptionsLegacy): Promise<void>;
|
|
186
|
+
// show-more
|
|
187
|
+
interface INetworkOptionsLegacy {
|
|
188
|
+
interface: NetworkInterface;
|
|
189
|
+
localAddress: string;
|
|
190
|
+
gateway: string;
|
|
191
|
+
netmask: string;
|
|
192
|
+
dns: string[];
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
type NetworkInterface = 'wifi' | 'ethernet';
|
|
196
|
+
|
|
197
|
+
```
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# os
|
|
2
|
+
|
|
3
|
+
The `sos.management.os` API groups together methods for retrieving information about the system.
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
### getCpuUsage()
|
|
8
|
+
|
|
9
|
+
The `getCpuUsage()` method returns current CPU usage (ranging 0-100).
|
|
10
|
+
|
|
11
|
+
```ts expandable
|
|
12
|
+
getCpuUsage(): Promise<number>;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
<Separator />
|
|
16
|
+
|
|
17
|
+
### getInfo()
|
|
18
|
+
|
|
19
|
+
The `getInfo()` method returns info about the system of the device, such as what current version of it is installed on a device. Major
|
|
20
|
+
version of current operating system. It's usually 1 or 2 digits including or excluding dot notation.
|
|
21
|
+
|
|
22
|
+
```ts expandable
|
|
23
|
+
getInfo(): Promise<IOSInfo>;
|
|
24
|
+
// show-more
|
|
25
|
+
interface IOSInfo {
|
|
26
|
+
/**
|
|
27
|
+
* Major version of current operating system.
|
|
28
|
+
* It's usually 1 or 2 digits including or excluding dot notation.
|
|
29
|
+
* E.g.:
|
|
30
|
+
* Windows -> 7, 8, 10, 11
|
|
31
|
+
* WebOS -> 3, 3.2, 4, 4.1
|
|
32
|
+
* Tizen -> 2.4, 3, 4, 5
|
|
33
|
+
*/
|
|
34
|
+
version: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
<Separator />
|
|
40
|
+
|
|
41
|
+
### getMemoryUsage()
|
|
42
|
+
|
|
43
|
+
The `getMemoryUsage()` method returns total memory amount in bytes, currently used memory and remaining free memory.
|
|
44
|
+
|
|
45
|
+
```ts expandable
|
|
46
|
+
getMemoryUsage(): Promise<SystemMemoryInfo>;
|
|
47
|
+
// show-more
|
|
48
|
+
interface SystemMemoryInfo {
|
|
49
|
+
used: number;
|
|
50
|
+
total: number;
|
|
51
|
+
free: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
```
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# package
|
|
2
|
+
|
|
3
|
+
The `sos.management.package` API groups together methods for installing custom Android packages.
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
### install()
|
|
8
|
+
|
|
9
|
+
The `install()` method installs a certain package from the specified url.
|
|
10
|
+
|
|
11
|
+
```ts expandable
|
|
12
|
+
install(baseUrl: string, packageName: string, version: string, build: string | null): Promise<void>;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
#### Params
|
|
16
|
+
|
|
17
|
+
| Name | Type | Description |
|
|
18
|
+
|---------------|------------------|------------------------------------|
|
|
19
|
+
| `baseUrl` | `string` | URL where the package is available |
|
|
20
|
+
| `packageName` | `string` | Name of the android package |
|
|
21
|
+
| `version` | `string` | Package version |
|
|
22
|
+
| `build` | `string \| null` | If relevant for your device |
|
|
23
|
+
|
|
24
|
+
#### Example
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
await sos.management.package.install(
|
|
28
|
+
'https://cdn.your-cms.com',
|
|
29
|
+
'io.signageosWebView.app.ota',
|
|
30
|
+
'2.4.0',
|
|
31
|
+
'benq'
|
|
32
|
+
);
|
|
33
|
+
```
|