To use Samsung Product API, <script type="text/javascript" src="$WEBAPIS/webapis/webapis.js"></script> Should be loaded in index.html
To use Samsung Product API,
<script type="text/javascript" src="$WEBAPIS/webapis/webapis.js"></script>
Should be loaded in index.html
Since : 6.5
Product : B2B (LFD)
getVersion
DOMString getVersion();
Product: B2B (LFD)
Exceptions:
with the error type SecurityError if the application does not have the privilege to call this method.
with the error type UnknownError in any other error case.
Code example:
var Version = null; try { Version = webapis.systemcontrol.getVersion(); } catch (e) { console.log("[getVersion] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); } if(null !== Version){ console.log("[getVersion] call syncFunction type: " + Version); }
captureScreen
void captureScreen();
with the error type SecurityError if the application does not have the privilege to call this method
with the error type UnknownError in any other error case
try { webapis.systemcontrol.captureScreen(); } catch (e) { console.log("[captureScreen] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); }
rebootDevice
void rebootDevice();
Product: B2B (LFD, IWB)
try { webapis.systemcontrol.rebootDevice(); } catch (e) { console.log("[rebootDevice] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); }
getSerialNumber
DOMString getSerialNumber();
var SerialNumber = null; try { SerialNumber = webapis.systemcontrol.getSerialNumber(); } catch (e) { console.log("[getSerialNumber] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); } if (null !== SerialNumber) { console.log("[getSerialNumber] call syncFunction type: " + SerialNumber); }
updateFirmware
void updateFirmware(DOMString SoftwareID, DOMString SWUFileName, DOMString SWVersion, DOMString SWURL, long SWTotalBytes);
Parameters:
with the error type InvalidValuesError if invalid values are passed for an input parameter.
with the error type NotSupportedError if this feature is not supported.
with the error type TypeMismatchError if invalid values are passed for an input parameter.
var SoftwareID = "0"; var SWUFileName = "upgrade.bem"; var SWVersion = "T-HKMLAKUC 0227.20"; var SWURL = "http://10.88.43.36:8080/New2016/Saurabh/swupdate/T-HKMLAKUC_0227_20/image/upgrade.bem"; var SWTotalBytes = 1007396825; webapis.systemcontrol.updateFirmware(SoftwareID, SWUFileName, SWVersion, SWURL, SWTotalBytes);
setUpdateFirmwareListener
void setUpdateFirmwareListener(UpdateFirmwareProgressChangedCallback onchange);
var onchange = function(data) { console.log("[UpdateFirmwareProgressChangedCallback] progress :" + data + " changed"); } try { webapis.systemcontrol.setUpdateFirmwareListener(onchange); } catch (e) { console.log("setUpdateFirmwareListener exception [" + e.code + "] name: " + e.name + " message: " + e.message);); }
unsetUpdateFirmwareListener
void unsetUpdateFirmwareListener();
function unsetUpdateFirmwareListener() { try { console.log("begin unsetUpdateFirmwareListener"); webapis.systemcontrol.unsetUpdateFirmwareListener(); } catch (e) { console.log("unsetUpdateFirmwareListener exception [" + e.code + "] name: " + e.name + " message: " + e.message); return; } }
setScreenLampSchedule
void setScreenLampSchedule(LampScheduleInfo info);
var info = { "use" : "ON", "firstTime" : "08:55", "level1" : 30, "secondTime" : "16:50", "level2" : 80 } try { webapis.systemcontrol.setScreenLampSchedule(info); } catch (e) { console.log("[setScreenLampSchedule] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); }
getScreenLampSchedule
LampScheduleInfo getScreenLampSchedule();
var ScreenLampSchedule = null; try { ScreenLampSchedule = webapis.systemcontrol.getScreenLampSchedule(); } catch (e) { console.log("[getScreenLampSchedule] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); } if (null !== ScreenLampSchedule) { console.log("[getScreenLampSchedule] call syncFunction type: " + ScreenLampSchedule); }
setPanelMute
void setPanelMute(Activation enable);
try { webapis.systemcontrol.setPanelMute("ON"); } catch (e) { console.log("[setPanelMute] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); }
getPanelMute
Activation getPanelMute();
with error type SecurityError if the application does not have the privilege to call this method.
with error type UnknownError in any other error case.
var PanelMuteOnOff = null; try { PanelMuteOnOff = webapis.systemcontrol.getPanelMute(); } catch (e) { console.log("[getPanelMute] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); } if (null !== PanelMuteOnOff) { console.log("[getPanelMute] call syncFunction type: " + PanelMuteOnOff); }
setSafetyLock
void setSafetyLock(Activation enable);
try { webapis.systemcontrol.setSafetyLock("ON"); } catch (e) { console.log("[setSafetyLock] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); }
getSafetyLock
Activation getSafetyLock();
var SafetyLock = null; try { SafetyLock = webapis.systemcontrol.getSafetyLock(); } catch (e) { console.log("[getSafetyLock] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); } if (null !== SafetyLock) { console.log("[getSafetyLock] call syncFunction type: " + SafetyLock); }
getSourceOrientation
ScreenOrientation getSourceOrientation();
with error type NotSupportedError, if the input Source is not supported in the model.
var Result = null; try { Result = webapis.systemcontrol.getSourceOrientation(); } catch (e) { console.log("[getSourceOrientation] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); } console.log("[getSourceOrientation] call syncFunction type: " + Result);
setPCConnection
void setPCConnection(PCConnection type);
with error type TypeMismatchError if invalid values are passed for an input parameter.
with error type NotSupportedError if this feature is not supported.
with error type InvalidValuesError if invalid values are passed for an input parameter.
try { webapis.systemcontrol.setPCConnection("RJ45"); } catch (e) { console.log("[setPCConnection] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); }
getPCConnection
PCConnection getPCConnection();
var PCConnection = null; try { PCConnection = webapis.systemcontrol.getPCConnection(); } catch (e) { console.log("[getPCConnection] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); } if(null !== PCConnection){ console.log("[getPCConnection] call syncFunction type: " + PCConnection); }
setMessageDisplay
void setMessageDisplay(Activation enable);
with the error type TypeMismatchError if an input parameter is not compatible with its expected type.
with the error type InvalidValuesError if any input parameter contains an invalid value.
try { webapis.systemcontrol.setMessageDisplay("ON"); } catch (e) { console.log("[setMessageDisplay] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); }
getMessageDisplay
Activation getMessageDisplay();
var MessageDisplay = null; try { MessageDisplay = webapis.systemcontrol.getMessageDisplay(); } catch (e) { console.log("[getMessageDisplay] call syncFunction exception [" + e.code + "] name: " + e.name + " message: " + e.message); } if(null !== MessageDisplay){ console.log("[getMessageDisplay] call syncFunction type: " + MessageDisplay); }
SystemControl::SystemControlManagerObject
Activation
PCConnection
ScreenOrientation