Class: Custom

Custom

CustomJS APIs, can attach to SCAP APIs

new Custom()

Examples
<!-- HTML File -->
<HTML>
    <HEAD>
        <!-- Same usage method with SCAP API -->
        <script type='text/javascript' src='./js/cordova/2.7.0/cordova.webos.js'></script>
        <script type='text/javascript' src='./custom.js'></script>
    </HEAD>
    <BODY>
        <!-- Do something -->
    </BODY>
</HTML>
// JavaScript File 
var custom = new Custom();

Namespaces

Configuration
Signage
VideoSync

Members


<constant> APPLICATION

Application values that you can launch.
Note that external signal application should be used only if your device is supported.
Properties:
Name Type Description
Custom.APPLICATION.ZIP_TYPE string ZIP Type application
Custom.APPLICATION.IPK_TYPE string IPK Type application
Custom.APPLICATION.EXTERNAL_HDMI string External Input HDMI
Custom.APPLICATION.EXTERNAL_HDMI1 string External Input HDMI1
Custom.APPLICATION.EXTERNAL_HDMI2 string External Input HDMI2
Custom.APPLICATION.EXTERNAL_HDMI3 string External Input HDMI3
Custom.APPLICATION.EXTERNAL_HDMI4 string External Input HDMI4
Custom.APPLICATION.EXTERNAL_RGB string External Input RGB
Custom.APPLICATION.EXTERNAL_DVI string External Input DVI
Custom.APPLICATION.EXTERNAL_DP string External Input DisplayPort
Custom.APPLICATION.EXTERNAL_OPS string External Input OPS
Custom.APPLICATION.SCREEN_SHARE string Screen Share application
Version:
  • 1.0

<constant> AVSYNC

avSync value.
Properties:
Name Type Description
Custom.AVSYNC.ON string avSync On
Custom.AVSYNC.OFF string avSync Off
Version:
  • 1.1180102

<constant> AVSYNCBYPASS

avSync Bypass value.
Properties:
Name Type Description
Custom.AVSYNCBYPASS.ON string avSync Bypass On
Custom.AVSYNCBYPASS.OFF string avSync Bypass Off
Version:
  • 1.1180102

<constant> CLEARBROWSINGDATATYPES

clearBrowsingData CLEARBROWSINGDATATYPES.
Properties:
Name Type Description
Custom.CLEARBROWSINGDATATYPES.ALL string Clears browsing all data.
Custom.CLEARBROWSINGDATATYPES.APPCACHE string Clears browsing appcache data.
(dropped since Chromium 85)
Custom.CLEARBROWSINGDATATYPES.CACHE string Clears browsing cache data.
Custom.CLEARBROWSINGDATATYPES.CHANNELIDS string Clears browsing channelIDs data.
Custom.CLEARBROWSINGDATATYPES.COOKIES string Clears browsing cookies data.
Custom.CLEARBROWSINGDATATYPES.FILESYSTEMS string Clears browsing filesystems data.
Custom.CLEARBROWSINGDATATYPES.INDEXEDDB string Clears browsing indexedDB data.
Custom.CLEARBROWSINGDATATYPES.LOCALSTORAGE string Clears browsing localstorage data.
Custom.CLEARBROWSINGDATATYPES.SERVICEWORKERS string Clears browsing serviceworkers data.
Custom.CLEARBROWSINGDATATYPES.WEBSQL string Clears browsing webSQL data.
Version:
  • 1.1180102

<constant> ERROR_CODE

Error code list.
Properties:
Name Type Description
Custom.COMMON.OLD_WEBOS_VERSION string Called API need later version of webOS Signage than current device's webOS Signage version.
Custom.COMMON.UNSUPPORTED_API string Device or current firmware can't support called API.
Custom.COMMON.BAD_PARAMETERS string Parameter is invalid, such as parameeters are missing or invalid type.
Custom.COMMON.INTERNAL_ERROR string Error is occurred during API is operating internally.
Custom.COMMON.NOT_MONITORING string If you call stopMonitoring API before start monitoring API, this error is occurred.
Custom.COMMON.MEDIA_ERROR string Error regarding media, such as audio or video.
Custom.CONFIGURATION.ACCESS_DENIED string Change password is failed due to wrong password is inputted.
Custom.CONFIGURATION.INVALID_PASSWORD_FORMAT string Password format is invalid.
Custom.APPLICATION.SETTINGS_ERROR string SI Server settings is invalid for operating used API.
Custom.APPLICATION.NOT_INSTALLED string Target application is not installed.
Version:
  • 1.0

<constant> NATIVEPORTRAIT

Rotation degree value of Native portrait
Properties:
Name Type Description
Custom.NATIVEPORTRAIT.OFF string Do not rotation.
Custom.NATIVEPORTRAIT.DEGREE_90 string Rotate to 90 degrees clockwise.
Custom.NATIVEPORTRAIT.DEGREE_180 string Rotate to 180 degrees clockwise.
Custom.NATIVEPORTRAIT.DEGREE_270 string Rotate to 270 degrees clockwise.
Version:
  • 1.0

<constant> NOSIGNALIMAGE

NoSignalImage value.
Properties:
Name Type Description
Custom.NOSIGNALIMAGE.ON string NoSignalImage On
Custom.NOSIGNALIMAGE.OFF string NoSignalImage Off
Version:
  • 1.1180102

<constant> POWERONSTATUS

Power On Status value.
Properties:
Name Type Description
Custom.POWERONSTATUS.POWERON string Power On
Custom.POWERONSTATUS.STANDBY string Standby
Custom.POWERONSTATUS.LASTSTATUS string Last Status
Version:
  • 1.0170223