Custom.js

Additional APIs

LG ELECTRONICS INC., SEOUL, KOREA

Copyright(c) 2026 by LG Electronics Inc.

Author : signagesupport@lge.com

Created Date : 2016-11-18

Modified Date : 2026-05-07

Release Version : 1.44260507


Please see doc/index.html for more detail.

Files

  • js/cordova/2.7.0/cordova.webos.js : Cordova file from SCAP API
  • custom.js : Custom SCAP API library file
  • doc/index.html : API Documents

Release Note


May 07, 2026

Bug fix

- Fixed syntax error on webOS Signage 3.x (Chrome 38) caused by arrow function in minified output. Disabled IIFE-to-arrow conversion in build.

Mar 18, 2026

Supports webOS Signage 6.1.

Add description for CLEARBROWSINGDATATYPES constant

- Appcache has been dropped since Chromium 85

May 08, 2024

Bug fix

- Custom.Signage.switchApplication : Fixed bug that Screen Share application cannot be launched on webOS Signage 6.0

Apr 05, 2024

Supports webOS Signage 24(webOS 8.0).

Dec 29, 2023

Supports webOS Signage 23.

Dec 28, 2023

Update API

- Custom.Configuration.changePassword : Update additional condition by changed default password policy

Dec 28, 2022

Supports webOS Signage 22.

Jun 09, 2021

Supports webOS Signage 6.0 Emulator

Dec 04, 2020

Supports webOS Signage 5.0 and 6.0.

Feb 06, 2020

Bug fix

- Custom.Signage.getwebOSVersion : Fixed bug that some webOS Signage 4.0 device cannot be detected.

Nov 25, 2019

Bug fix

- Custom.Configuration.clearBrowsingData : Fixed bug that the "FILESYSTEMS", "LOCALSTORAGE", "SERVICEWORKERS" properties did not work on webOS Signage 4.0

Nov 19, 2019

Update API

- Custom.VideoSync.setMaster : Add "videoElement" parameter to select specific video tag.
- Custom.VideoSync.setSlave : Add "videoElement" parameter to select specific video tag.

Oct 30, 2019

Supports webOS Signage 4.1.

Aug 05, 2019

New API

- Custom.Configuration.getCustomJSVersion : Gets current used CustomJS version.

May 14, 2019

New API

- Custom.Signage.enableScreenShareApp : Enable or disable Screen Share application on UX.

Update API

- Custom.Signage.switchApplication : Enable to launch Screen Share application.

Sep 05, 2018

New API

- Custom.Configuration.getPortControl : Gets network port block.
- Custom.Configuration.setPortControl : Sets network port block.

Jul 11, 2018

New API

- Custom.Signage.addUSBAttachEventListener : Adds event listener about USB storage attach/detach
- Custom.Signage.removeUSBAttachEventListener : Removes registered USB storage attach/detach event listener

May 16, 2018

Bug fix

- Custom.Configuration.setWhiteBalanceRGB : Fixed bug that API is not works whe r/g/bGain value is 0.

May 05, 2018

New API

- Custom.Configuration.setEnterpriseCode : Sets Enterprise Code.

Jan 15, 2018

New API

- Custom.Configuration.getWhiteBalanceRGB : Gets each color gain value of white balance.
- Custom.Configuration.setWhiteBalanceRGB : Sets each color gain value of white balance.

Jan 02, 2018

New API

- Custom.Configuration.clearBrowsingData : Clear Browsing Data.
- Custom.Configuration.setAvSync : Sets AvSync Status.
- Custom.Configuration.setAvSyncBypass : Sets AvSync Bypass Status.
- Custom.Configuration.setAvSyncSpeaker : Sets AvSync Speaker Status.
- Custom.Configuration.setNoSignalImage : Sets noSignalImage Status.
- Custom.Configuration.getAvSync : Gets AvSync Status.
- Custom.Configuration.getAvSyncBypass : Gets AvSync Bypass Status.
- Custom.Configuration.getAvSyncSpeaker : Gets AvSync Speaker Status.
- Custom.Configuration.getNoSignalImage : Gets noSignalImage Status.

Fixed check the platform version.

Dec 28, 2017

Bug fix

- Custom.Signage.getwebOSVersion : Fixed bug that cannot detect webOS Signage 3.0 and 3.2.

Apr 20, 2017

Bug fix

Fixed undefined.toFixed error.

Mar 28, 2017

New API

- Custom.Sigange.getwebOSVersion : Gets webOS Signage version.
- Custom.Configuration.getPowerOnOffHistor : Gets power on and off history.
- Custom.Configuration.getPowerOnStatus : Gets Power On Status.
- Custom.Configuration.setPowerOnStatus : Sets Power On Status.

Add supported webOS Version of each APIs on document. Add exception check routine for APIs can run on current platform or not.

Dec 15, 2016

New API

- Custom.Sigange.disableApplication : Disable application launch.

Change APIs parameters and callback parameters

- Custom.SpecificModel.Enclosure.setBluPwm
- Custom.SpecificModel.Enclosure.getBluPwm

Fixed some APIs which are not operated

- Custom.Configuration.setNativePortraitMode
- Custom.Sigange.switchApplication

Fixed example code typo and syntax error. Add error codes. Fixed some APIs which are callback parameters are invalid.

Dec 14, 2016

Bug Fix

Fixed setMaster, setSlave bug

Dec 05, 2016

Change library structure to more abstract, and add new APIs

Custom.Configuration
Custom.Configuration.changePassword
Custom.Configuration.getKAM
Custom.Configuration.getNativePortraitMode
Custom.Configuration.getWoWLAN
Custom.Configuration.setKAM
Custom.Configuration.setNativePortraitMode
Custom.Configuration.setWoWLAN
Custom.Signage
Custom.Signage.switchApplication
Custom.SpecificModel
Custom.SpecificModel.Enclosure.getDoorState
Custom.SpecificModel.Enclosure.getFanMode
Custom.SpecificModel.Enclosure.getTemperature
Custom.SpecificModel.Enclosure.resetDoorState
Custom.SpecificModel.Enclosure.setFanMode
Custom.VideoSync
Custom.VideoSync.setMaster
Custom.VideoSync.setSlave

Nov 29, 2016

Bug fix

- Custom.switchApplication : Fixed when if switch to ZIP type, then Network Error is occured.

Nov 21, 2016

New APIs

- Custom.changePassword : Change Installation Menu password.
- Custom.getKAM : Gets Keep Alive Mode.
- Custom.getNativePortraitMode : Gets Native Portrait Mode.
- Custom.getWoWLAN : Gets WowLAN (Wake on Wireless LAN) settings.
- Custom.setKAM : Sets Keep Alive Mode
- Custom.setNativePortraitMode : Sets Native Portrait Mode.
- Custom.setWoWLAN : Sets WowLAN (Wake on Wireless LAN) settings.
- Custom.switchApplication : Switch and launch other application

Index

custom.js

CustomJS APIs
Version:
  • 1.44260507
Since:
  • 2026-05-07
Author:
  • signagesupport@lge.com