Epaper API
console log "[getversion] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if null !== version { console log "[getversion] call syncfunction type " + version ; } setautosleeptime it can be set a time delay for entering sleep mode, and upon setting, the delay time begins to count if the time setting value changes, it will be counted again from the beginning according to the newly set value void setautosleeptime sleeptime delaytime ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters delaytime sleep delay mode exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error with error type typemismatcherror, if an input parameter is not compatible with its expected type since 8 0 code example var delaytime = "30min"; try { webapis epaper setautosleeptime delaytime ; } catch e { console log "[setautosleeptime] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getautosleeptime get the value of the time delay for entering sleep mode off value is when the delay time is not set sleeptime getautosleeptime ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value sleeptime sleeptime waiting time beginning to count for entering sleep mode exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error since 8 0 code example var time = null; try { time = webapis epaper getautosleeptime ; console log "[getautosleeptime] call syncfunction type " + time ; } catch e { console log "[getautosleeptime] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } resetautosleeptime it can be reset a time delay count for entering sleep mode, the delay time begins again to count void resetautosleeptime ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error since 8 0 code example try { webapis epaper resetautosleeptime ; } catch e { console log "[resetautosleeptime] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } gotosleep allows the device to directly enter sleep mode void gotosleep ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error since 8 0 code example try { webapis epaper gotosleep ; } catch e { console log "[gotosleep] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } setschedulewakeuptime it can be set a schedule for the device to wake up after a certain period of time the unit is in seconds the time setting is up to one week 1 ~ 604800 sec it can be set more than one wake up time and manage the returned id to utilize the get or cancel api 최대 일주일까지 wake up 시간을 설정할 수 있다 1 ~ 604800 초 long setschedulewakeuptime wakeuptime wakeuptime ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters wakeuptime wakeup time information return value long long wakeup timer id exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error with error type typemismatcherror, if an input parameter is not compatible with its expected type since 8 0 code example var wakeup_time = { "year" 2024, "month" 12, "day" 15, "hour" 8, "minute" 55, "second" 43 } try { var timerid = webapis epaper setschedulewakeuptime wakeup_time ; console log "[setschedulewakeuptime] call syncfunction type " + timerid ; } catch e { console log "[setschedulewakeuptime] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getschedulewakeuptime retrieve the previously set value for the wakeup date time wakeuptime getschedulewakeuptime long timerid ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters timerid timer id of wakeup time return value wakeuptime wakeuptime wakeup date time exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error with error type typemismatcherror, if an input parameter is not compatible with its expected type since 8 0 code example var date; var id = 10; // return value of setschedulewakeuptime try { data = webapis epaper getschedulewakeuptime id ; console log "[getschedulewakeuptime] call syncfunction type " + date ; } catch e { console log "[getschedulewakeuptime] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } cancelschedulewakeuptime cancel schedulewakeuptime the previously set value for the wakeup time void cancelschedulewakeuptime long timerid ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters timerid timer id of wakeup time exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error with error type typemismatcherror, if an input parameter is not compatible with its expected type since 8 0 code example var id = 10; // return value of setschedulewakeuptime try { webapis epaper cancelschedulewakeuptime id ; console log "[cancelschedulewakeuptime] call syncfunction type " ; } catch e { console log "[cancelschedulewakeuptime] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } setnetworkstandby it can be set network standby mode void setnetworkstandby activation mode ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters mode actovate mode of network stanby exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error with error type typemismatcherror, if an input parameter is not compatible with its expected type since 8 0 code example var mode = "on"; try { webapis epaper setnetworkstandby mode ; } catch e { console log "[setnetworkstandby] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getnetworkstandby get the value of network standby mode activation getnetworkstandby ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value activation activation mode of network stanby exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error since 8 0 code example var mode = null; try { mode = webapis epaper getnetworkstandby ; } catch e { console log "[getnetworkstandby] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if mode { console log "[getnetworkstandby] call syncfunction type " + mode ; } isscheduledplaybootreason get scheduled boot reason of device power wake up boolean isscheduledplaybootreason ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value boolean bool true 1 or false 0 if boot reason scheduled power wake up exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported since 8 0 code example var reason; try { reason = webapis epaper isscheduledplaybootreason ; } catch e { console log "[isscheduledplaybootreason] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if reason { console log "[isscheduledplaybootreason] call syncfunction type " + reason ; } setbatterywarningicondisplay sets the battery warning icon display mode to on or off void setbatterywarningicondisplay activation mode ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters mode of battery warning icon exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error with error type typemismatcherror, if an input parameter is not compatible with its expected type since 8 0 code example var mode = "on"; try { webapis epaper setbatterywarningicondisplay mode ; } catch e { console log "[setbatterywarningicondisplay] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getbatterywarningicondisplay gets the battery warning icon display mode activation getbatterywarningicondisplay ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value activation activation mode of battery warning icon exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error since 8 0 code example var mode = null; try { mode = webapis epaper getbatterywarningicondisplay ; } catch e { console log "[getbatterywarningicondisplay] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if mode { console log "[getbatterywarningicondisplay] call syncfunction type " + mode ; } screenrefreshnow allows the device to refresh screen void screenrefreshnow ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error since 8 0 code example try { webapis epaper screenrefreshnow ; } catch e { console log "[screenrefreshnow] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } setscreenrefreshtime sets the interval used for periodic refresh of screen the setting is turned off after a specific time period following the refresh screen void setscreenrefreshtime refreshtime refreshtime ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters refreshtime object refresh screen time exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error with error type typemismatcherror, if an input parameter is not compatible with its expected type since 8 0 code example var refreshtime = { "hour" 6, "minute" 15 }; try { webapis epaper setscreenrefreshtime refreshtime ; } catch e { console log "[setscreenrefreshtime] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } getscreenrefreshtime gets the time of refresh screen refreshtime getscreenrefreshtime ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol return value refreshtime long time of refresh screen exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error since 8 0 code example var mode; try { mode = webapis epaper getscreenrefreshtime ; } catch e { console log "[getscreenrefreshtime] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } if mode { console log "[getscreenrefreshtime] call syncfunction type " + mode ; } setledstateoff selectively deactivate the led of an epaper device in a specific color scheme void setledstateoff ledcolor color ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters color led color information exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error with error type typemismatcherror, if an input parameter is not compatible with its expected type since 8 0 code example var color = "led_green"; try { webapis epaper setledstateoff color ; } catch e { console log "[setledstateoff] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } setledstateon selectively activate the led of an epaper device in a specific color scheme void setledstateon ledoninfo info ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters info led control information of epaper exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error with error type typemismatcherror, if an input parameter is not compatible with its expected type since 8 0 code example var info = { "color" "led_green", "duration" 150 }; try { webapis epaper setledstateon info ; } catch e { console log "[setledstateoff] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } setledstateblink selectively blink the led of an epaper device in a specific color scheme void setledstateblink ledblinkinfo info ; product b2b lfd privilege level partner privilege http //developer samsung com/privilege/systemcontrol parameters info led blink information of epaper exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method with error type notsupportederror, if this feature is not supported with error type unknownerror, for any other error with error type typemismatcherror, if an input parameter is not compatible with its expected type since 8 0 code example var info = { "color" "led_green", "onintervaltime" "led_250ms", "offintervaltime" "led_250ms", "duration" 180 }; try { webapis epaper setledstateblink info ; } catch e { console log "[setledstateblink] call syncfunction exception [" + e code + "] name " + e name + " message " + e message ; } 3 full webidl module epaper { enum activation { "on", "off" }; enum sleeptime { "off", "3min", "5min", "10min", "20min", "30min", "60min" }; [nointerfaceobject] interface refreshtime { attribute long hour; attribute long minute; }; [nointerfaceobject] interface ledoninfo { attribute ledcolor color; attribute long duration; }; [nointerfaceobject] interface ledblinkinfo { attribute ledcolor color; attribute ledintervaltime onintervaltime; attribute ledintervaltime offintervaltime; attribute long duration; }; [nointerfaceobject] interface wakeuptime { attribute long year; attribute long month; attribute long day; attribute long hour; attribute long minute; attribute long second; }; [nointerfaceobject] interface epapermanagerobject { readonly attribute epapermanager epaper; }; webapi implements epapermanagerobject; [nointerfaceobject] interface epapermanager { domstring getversion ; void setautosleeptime sleeptime delaytime ; sleeptime getautosleeptime ; void resetautosleeptime ; void gotosleep ; long setschedulewakeuptime wakeuptime wakeuptime ; wakeuptime getschedulewakeuptime long timerid ; void cancelschedulewakeuptime long timerid ; void setnetworkstandby activation mode ; activation getnetworkstandby ; boolean isscheduledplaybootreason ; void setbatterywarningicondisplay activation mode ; activation getbatterywarningicondisplay ; void screenrefreshnow ; void setscreenrefreshtime refreshtime refreshtime ; refreshtime getscreenrefreshtime ; void setledstateoff ledcolor color ; void setledstateon ledoninfo info ; void setledstateblink ledblinkinfo info ; }; };