- Version:
-
- 1.0
Methods
-
changePassword(successCallback, failureCallback, parameters)
-
Change Installation Menu password. Before changing password, you should put current password. If webOS Version is 3.2 or above, SI server menu password is not needed, so it will be not returned.
Parameters:
Name Type Description successCallbackfunction Callback function if changePassword() is called successfully.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description serverUIPasswordstring New password of accessing SI Server Menu. If webOS Version is 3.2 or above, SI server menu password is not needed, so it will be not returned. failureCallbackfunction Callback function when error is occurred during changePassword() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. parametersobject Properties
Name Type Description currentPasswordstring Current password for entering Installation Menu. newPasswordstring New password that you want to change. - Version:
-
- 1.0
- Since:
-
- webOS Signage 1.0
Example
Below example will change new password to '1234', and you can get new SI server menu password.
// Changes installation password to new one, and gets new SI server menu password(if supported). var custom = new Custom(); custom.Configuration.changePassword( function successCallback(successObject) { console.log('New password of SI Server settings is : ' + successObject.serverUIPassword); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { currentPassword : '0000', newPassword : '1234' } ); -
clearBrowsingData(successCallback, failureCallback, parameters)
-
Clear browsing data. *Note. It works only in 'zip' type application.*
Parameters:
Name Type Description successCallbackfunction Callback function if clearBrowsingData() is called successfully without any argument object. failureCallbackfunction Callback function when error is occurred during clearBrowsingData() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. parametersobject Properties
Name Type Description typesarray An array of browsing data types to remove.
Default value is ["all"].
Empty array removes nothing.
See Custom#CLEARBROWSINGDATATYPES for more detail.- Version:
-
- 1.1180102
- Since:
-
- webOS Signage 3.0
- See:
Example
Clear browsing data.
// Clear browsing data. function clearBrowsingData() { var custom = new Custom(); custom.Configuration.clearBrowsingData( function successCallback() { console.log('clearBrowsingData is operated.'); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { types : [ Custom.CLEARBROWSINGDATATYPES.ALL, Custom.CLEARBROWSINGDATATYPES.APPCACHE, Custom.CLEARBROWSINGDATATYPES.CACHE, Custom.CLEARBROWSINGDATATYPES.CHANNELIDS, Custom.CLEARBROWSINGDATATYPES.COOKIES, Custom.CLEARBROWSINGDATATYPES.FILESYSTEMS, Custom.CLEARBROWSINGDATATYPES.INDEXEDDB, Custom.CLEARBROWSINGDATATYPES.LOCALSTORAGE, Custom.CLEARBROWSINGDATATYPES.SERVICEWORKERS, Custom.CLEARBROWSINGDATATYPES.WEBSQL ] } ); } -
getAvSync(successCallback, failureCallback)
-
Gets AvSync Status.
Parameters:
Name Type Description successCallbackfunction Callback function if getAvSync() is called successfully successfully.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description avSyncstring Current value of AvSync status. failureCallbackfunction Callback function when error is occurred during getAvSync() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. - Version:
-
- 1.1180102
- Since:
-
- webOS Signage 2.0
- See:
Example
Gets AvSync Status.
// Gets AvSync Status. var custom = new Custom(); custom.Configuration.getAvSync( function successCallback(successObject) { console.log('AvSync Status : ' + successObject.avSync); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); } ); -
getAvSyncBypass(successCallback, failureCallback)
-
Gets AvSync Bypass Status.
Parameters:
Name Type Description successCallbackfunction Callback function if getAvSyncBypass() is called successfully successfully.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description avSyncBypassInputstring Current AvSync Bypass Status value. failureCallbackfunction Callback function when error is occurred during getAvSyncBypass() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. - Version:
-
- 1.1180102
- Since:
-
- webOS Signage 2.0
- See:
Example
Gets AvSync Bypass Status.
// Gets AvSync Bypass Status. var custom = new Custom(); custom.Configuration.getAvSyncBypass( function successCallback(successObject) { console.log('AvSync Bypass Status : ' + successObject.avSyncBypassInput); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); } ); -
getAvSyncSpeaker(successCallback, failureCallback)
-
Gets AvSync Speaker Status.
Parameters:
Name Type Description successCallbackfunction Callback function if getAvSyncSpeaker() is called successfully successfully.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description avSyncSpeakernumber Current AvSync Speaker Status value. failureCallbackfunction Callback function when error is occurred during getAvSyncSpeaker() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. - Version:
-
- 1.1180102
- Since:
-
- webOS Signage 2.0
- See:
-
- Custom#Configuration#setAvSyncSpeaker
- Custom#AVSYNCSPEAKER
Example
Gets AvSync Speaker Status.
// Gets AvSync Speaker Status. var custom = new Custom(); custom.Configuration.getAvSyncSpeaker( function successCallback(successObject) { console.log('AvSync Speaker Status : ' + successObject.avSyncSpeaker); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); } ); -
getCustomJSVersion(successCallback, failureCallback)
-
Gets current used CustomJS version.
Parameters:
Name Type Description successCallbackfunction Callback function if getCustomJSVersion() is called successfully successfully.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description versionstring Version of current used CustomJS. failureCallbackfunction Callback function when error is occurred during getCustomJSVersion() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. - Version:
-
- 1.3190805
- Since:
-
- webOS Signage 1.0
Example
Below example will gets current used CustomJS version.
// Gets current used CustomJS version. function getCustomJSVersion() { var custom = new Custom(); custom.Configuration.getCustomJSVersion( function successCallback(successObject) { console.log('CustomJS Version : ' + successObject.version); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); } ); } -
getKAM(successCallback, failureCallback)
-
Gets Keep Alive Mode is enabled or not.
Parameters:
Name Type Description successCallbackfunction Callback function with object parameter if getKAM() is called successfully.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description keepAliveModeboolean Current KAM mode on or off. failureCallbackfunction Callback function when error is occurred during getKAM() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. - Version:
-
- 1.0
- Since:
-
- webOS Signage 2.0
- See:
Example
Below example will get KAM is enabled or not.
// Gets Keep alive mode. var custom = new Custom(); custom.Configuration.getKAM( function successCallback(successObject) { console.log('KAM is enabled? ' + successObject.keepAliveMode); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); } ); -
getNativePortraitMode(successCallback, failureCallback)
-
Gets native portrait rotation.
Parameters:
Name Type Description successCallbackfunction Callback function if getNativePortraitMode() is called successfully.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description nativePortraitstring Current native portrait mode. failureCallbackfunction Callback function when error is occurred during getNativePortraitMode() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. - Version:
-
- 1.0
- Since:
-
- webOS Signage 3.0
- See:
Example
Below example will get native portrait mode settings.
// Gets native portrait mode settings. var custom = new Custom(); custom.Configuration.getNativePortraitMode( function successCallback(successObject) { console.log('Native portrait settings : ' + successObject.nativePortrait); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); } ); -
getNoSignalImageStatus(successCallback, failureCallback)
-
Gets NoSignalImage Status.
Parameters:
Name Type Description successCallbackfunction Callback function if getNoSignalImageStatus() is called successfully successfully.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description noSignalImagestring Current NoSignalImage Status value. failureCallbackfunction Callback function when error is occurred during getNoSignalImageStatus() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. - Version:
-
- 1.1180102
- Since:
-
- webOS Signage 3.0
- See:
-
- Custom#Configuration#setNoSignalImageStatus
- Custom#getNoSignalImageStatus
Example
Gets NoSignalImage Status.
// Gets NoSignalImage Status. var custom = new Custom(); custom.Configuration.getNoSignalImageStatus( function successCallback(successObject) { console.log('NoSignalImage Status : ' + successObject.noSignalImage); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); } ); -
getPortControl(successCallback, failureCallback)
-
Gets network port block.
Parameters:
Name Type Description successCallbackfunction Callback function if getPortControl() is called successfully successfully.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description blockedPortListarray Array list that blocked port. Each element is object type which has "blockedPort" property. failureCallbackfunction Callback function when error is occurred during getPortControl() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. - Version:
-
- 1.2180905
- Since:
-
- webOS Signage 3.2
Example
Gets Enterprise code.
// Gets white balance value. function getPortControl() { var custom = new Custom(); custom.Configuration.getPortControl( function successCallback(successObject) { for(var i=0; i<successObject.blockedPortList.length; i++) { var portNumber = successObject.blockedPortList[i].blockedPort, protocol = successObject.blockedPortList[i].protocol; console.log('Blocked port : ' + portNumber); console.log('Protocol : ' + protocol); } }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); } ); } -
getPowerOnOffHistory(successCallback, failureCallback)
-
Gets power on/off history.
Parameters:
Name Type Description successCallbackfunction Callback function if getPowerOnOffHistory() is called successfully successfully.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description powerOnOffHistoryarray Array that power on / off history. failureCallbackfunction Callback function when error is occurred during getPowerOnOffHistory() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. - Version:
-
- 1.0170223
- Since:
-
- webOS Signage 1.0
Example
Below example will get power on/off history.
// Gets power on/off history. var custom = new Custom(); custom.Configuration.getPowerOnOffHistory( function successCallback(successObject) { console.log('Power History : ' + JSON.stringify(successObject.powerOnOffHistory, null, 4)); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); } ); -
getPowerOnStatus(successCallback, failureCallback)
-
Gets Power On Status.
Parameters:
Name Type Description successCallbackfunction Callback function if getPowerOnStatus() is called successfully successfully.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description powerOnStatusstring Current Power On Status value. failureCallbackfunction Callback function when error is occurred during getPowerOnStatus() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. - Version:
-
- 1.0170223
- Since:
-
- webOS Signage 1.0
- See:
Example
Gets Power On Status.
// Gets Power On Status. var custom = new Custom(); custom.Configuration.getPowerOnStatus( function successCallback(successObject) { console.log('Power On Status : ' + successObject.powerOnStatus); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { mode : Custom.POWERONSTATUS.POWERON } ); -
getWhiteBalanceRGB(successCallback, failureCallback)
-
Gets RGB value of white balance.
Parameters:
Name Type Description successCallbackfunction Callback function if getWhiteBalanceRGB() is called successfully successfully.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description rGainnumber Current red gain value of white balance. gGainnumber Current green gain value of white balance. bGainnumber Current blue gain value of white balance. failureCallbackfunction Callback function when error is occurred during setWhiteBalanceRGB() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. - Version:
-
- 1.1180115
- Since:
-
- webOS Signage 1.0
- See:
Example
Gets each #-Gain value.
// Gets white balance value. function getWhiteBalanceRGB() { var custom = new Custom(); custom.Configuration.getWhiteBalanceRGB( function successCallback(successObject) { console.log('White Balance : ' + JSON.stringify(successObject, null, 4)); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); } ); } -
getWoWLAN(successCallback, failureCallback)
-
Gets WowLAN (Wake on Wireless LAN) settings.
Parameters:
Name Type Description successCallbackfunction Callback function if getNativePortraitMode() is called successfully.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description enableWoWLANboolean If this value is true, WoWLAN is enabled. If not, WoWLAN is disabled. failureCallbackfunction Callback function when error is occurred during getNativePortraitMode() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. - Version:
-
- 1.0
- Since:
-
- webOS Signage 3.0
- See:
Example
Below example will get WowLAN (Wake on Wireless LAN) settings.
// Gets WoWLAN (Wake on Wireless LAN) settings. var custom = new Custom(); custom.Configuration.getWoWLAN( function successCallback(successObject) { console.log('WoWLAN : ' + successObject.enableWoWLAN); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); } ); -
setAvSync(successCallback, failureCallback, parameters)
-
Sets AvSync.
Parameters:
Name Type Description successCallbackfunction Callback function if setAvSync() is called successfully without any argument object. failureCallbackfunction Callback function when error is occurred during setAvSync() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. parametersobject Sets AvSyncAdjustment value. See Custom#AVSYNC for more detail. Properties
Type Description object Sets AvSyncAdjustment value. See Custom#AVSYNC for more detail. - Version:
-
- 1.1180102
- Since:
-
- webOS Signage 2.0
- See:
Example
Sets AvSync.
// Sets AV Sync Status. function setAvSync() { var custom = new Custom(); custom.Configuration.setAvSync( function successCallback() { console.log('AV Sync is set.'); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { avSync : Custom.AVSYNC.ON } ); } -
setAvSyncBypass(successCallback, failureCallback, parameters)
-
Sets AvSync Bypass.
Parameters:
Name Type Description successCallbackfunction Callback function if setAvSyncBypass() is called successfully without any argument object. failureCallbackfunction Callback function when error is occurred during setAvSyncBypass() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. parametersobject Sets AvSync Bypass value. See Custom#AVSYNCBYPASS for more detail. - Version:
-
- 1.1180102
- Since:
-
- webOS Signage 2.0
- See:
Example
Sets AvSync Bypass.
// Sets AV Sync Bypass Status. function setAvSyncBypass() { var custom = new Custom(); custom.Configuration.setAvSyncBypass( function successCallback() { console.log('AV Sync Bypass is set.'); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { avSyncBypassInput : Custom.AVSYNCBYPASS.ON } ); } -
setAvSyncSpeaker(successCallback, failureCallback, parameters)
-
Sets AvSync Speaker.
Parameters:
Name Type Description successCallbackfunction Callback function if setAvSyncSpeaker() is called successfully without any argument object. failureCallbackfunction Callback function when error is occurred during setAvSyncSpeaker() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. parametersobject Sets AvSync Speaker value. See Custom#AVSYNCSPEAKER for more detail. - Version:
-
- 1.1180102
- Since:
-
- webOS Signage 2.0
- See:
-
- Custom#Configuration#getAvSyncSpeaker
- Custom#AVSYNCSPEAKER
Example
Sets AvSync Speaker.
// Sets AV Sync Speaker Status. function setAvSyncSpeaker() { var custom = new Custom(); custom.Configuration.setAvSyncSpeaker( function successCallback() { console.log('AV Sync Speaker is set.'); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { avSyncSpeaker : -5 // avSyncSpeaker : -5 ~ 15 } ); } -
setEnterpriseCode(successCallback, failureCallback, parameters)
-
Sets Enterprise code. After setting Enterprise code, device automatically reboot.
For disabling Enterprise code, do factory reset device manually.Parameters:
Name Type Description successCallbackfunction Callback function if setEnterpriseCode() is called successfully without any argument object. failureCallbackfunction Callback function when error is occurred during setEnterpriseCode() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. parametersobject Properties
Name Type Description enterpriseCodestring Enterprise code. - Version:
-
- 1.2180305
- Since:
-
- webOS Signage 3.2
Example
Sets Enterprise code.
// Sets Enterprise code. function setEnterpriseCode() { var custom = new Custom(); custom.Configuration.setEnterpriseCode( function successCallback() { console.log('EnterpriseCode is set.'); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { enterpriseCode: "123456" } ); } -
setKAM(successCallback, failureCallback, parameters)
-
Enable or disable Keep Alive Mode.
Parameters:
Name Type Description successCallbackfunction Callback function if setKAM() is called successfully without any argument object. failureCallbackfunction Callback function when error is occurred during setKAM() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. parametersobject Properties
Name Type Description keepAliveModeboolean If this value is true, KAM will be enabled. If false, KAM will be disabled. - Version:
-
- 1.0
- Since:
-
- webOS Signage 2.0
- See:
Example
Below example will set KAM to true.
// Enable Keep alive mode. var custom = new Custom(); custom.Configuration.setKAM( function successCallback() { console.log('KAM is enabled.'); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { keepAliveMode : true } ); -
setNativePortraitMode(successCallback, failureCallback, parameters)
-
Sets native portrait rotation. See 'Custom.NATIVEPORTRAIT' constants for using this function.
Parameters:
Name Type Description successCallbackfunction Callback function if setNativePortraitMode() is called successfully without any argument object. failureCallbackfunction Callback function when error is occurred during setNativePortraitMode() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. parametersObject Properties
Name Type Description nativePortraitstring Degree that you want to rotate. - Version:
-
- 1.0
- Since:
-
- webOS Signage 3.0
- See:
Example
Below example will set native portrait mode settings to 90 degrees.
// Sets native portrait mode settings. var custom = new Custom(); custom.Configuration.setNativePortraitMode( function successCallback() { console.log('Native portrait is set'); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { nativePortrait : Custom.NATIVEPORTRAIT.DEGREE_90 } ); -
setNoSignalImageStatus(successCallback, failureCallback, parameters)
-
Sets no signal image status.
Parameters:
Name Type Description successCallbackfunction Callback function if setNoSignalImageStatus() is called successfully without any argument object. failureCallbackfunction Callback function when error is occurred during setNoSignalImageStatus() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. parametersobject Sets NoSignalImage value. See Custom#NOSIGNALIMAGE for more detail. - Version:
-
- 1.1180102
- Since:
-
- webOS Signage 3.0
- See:
Example
Sets no signal image status.
// Sets No Signal Image Status. function setNoSignalImageStatus() { var custom = new Custom(); custom.Configuration.setNoSignalImageStatus( function successCallback() { console.log('No Signal Image is set.'); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { noSignalImage : Custom.NOSIGNALIMAGE.ON } ); } -
setPortControl(successCallback, failureCallback, parameters)
-
Sets network port block.
Parameters:
Name Type Description successCallbackfunction Callback function if setPortControl() is called successfully without any argument object. failureCallbackfunction Callback function when error is occurred during setPortControl() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. parametersobject Properties
Name Type Description blockedPortListarray Array list to block port. Each element is object type which has "blockedPort" property. - Version:
-
- 1.2180905
- Since:
-
- webOS Signage 3.2
Example
Sets Enterprise code.
// Sets network port block. function setPortControl() { var custom = new Custom(); custom.Configuration.setPortControl( function successCallback() { console.log('Network ports are blocked.'); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { blockedPortList: [ { blockedPort : 6980, protocol: 'udp' }, { blockedPort : 9998, protocol: 'tcp' }, { blockedPort : 9080, protocol: 'tcp' } ] } ); } -
setPowerOnStatus(successCallback, failureCallback, parameters)
-
Sets Power On Status.
Parameters:
Name Type Description successCallbackfunction Callback function if setPowerOnStatus() is called successfully without any argument object. failureCallbackfunction Callback function when error is occurred during setPowerOnStatus() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. parametersobject Properties
Name Type Description modeboolean Sets Power On Status value. See Custom#POWERONSTATUS for more detail. - Version:
-
- 1.0170223
- Since:
-
- webOS Signage 1.0
- See:
Example
Sets Power On Status.
// Sets Power On Status. var custom = new Custom(); custom.Configuration.setPowerOnStatus( function successCallback() { console.log('Power On Status is set.'); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { mode : Custom.POWERONSTATUS.POWERON } ); -
setWhiteBalanceRGB(successCallback, failureCallback, parameters)
-
Sets RGB value of white balance.
Parameters:
Name Type Description successCallbackfunction Callback function if setWhiteBalanceRGB() is called successfully without any argument object. failureCallbackfunction Callback function when error is occurred during setWhiteBalanceRGB() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. parametersobject Properties
Name Type Argument Description rGainnumber <optional>
R-Gain value of white balance. One of #-Gain value must be used. gGainnumber <optional>
G-Gain value of white balance. One of #-Gain value must be used. bGainnumber <optional>
B-Gain value of white balance. One of #-Gain value must be used. - Version:
-
- 1.1180115
- Since:
-
- webOS Signage 1.0
- See:
Example
Sets each #-Gain value.
// Sets white balance value. function setWhiteBalanceRGB() { var custom = new Custom(); custom.Configuration.setWhiteBalanceRGB( function successCallback() { console.log('White balance adjusted.'); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { rGain : 0, gGain : 2, bGain : -3 } ); } -
setWoWLAN(successCallback, failureCallback, parameters)
-
Sets WowLAN (Wake on Wireless LAN) settings.
Parameters:
Name Type Description successCallbackfunction Callback function if getNativePortraitMode() is called successfully without any argument object. failureCallbackfunction Callback function when error is occurred during getNativePortraitMode() is called.
If its callback is called, you can handle argument object with following properties:Properties
Name Type Description errorCodestring Error code. errorTextstring Error text. parametersobject Properties
Name Type Description enableWoWLANboolean If this value is true, WoWLAN will be enabled. if false, WoWLAN will be disabled. - Version:
-
- 1.0
- Since:
-
- webOS Signage 3.0
- See:
Example
Below example will set WowLAN (Wake on Wireless LAN) settings.
// Sets WoWLAN (Wake on Wireless LAN) settings. var custom = new Custom(); custom.Configuration.setWoWLAN( function successCallback() { console.log('WoWLAN is set'); }, function failureCallback(failureObject) { console.error('[' + failureObject.errorCode + '] ' + failureObject.errorText); }, { enableWoWLAN : true } );