productinfo api to use samsung product api, <script type="text/javascript" src="$webapis/webapis/webapis js"></script> should be loaded in index html this module defines the product information functionalities provided by the tizen samsung product api since 2 3 product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo summary of interfaces and methods interface method productinfomanagerobject productinfomanager domstring getversion ;domstring getfirmware ;domstring getduid ;domstring getmodelcode ;domstring getmodel ;productinfosiservertype getsmarttvservertype ;domstring getsmarttvserverversion ;boolean isudpanelsupported ;boolean is8kpanelsupported ;domstring getrealmodel ;boolean iswallmodel ;domstring getlocalset ;any getsystemconfig productinfoconfigkey key ;void setsystemconfig productinfoconfigkey key, domstring value, optional successcallback? onsuccess, optional errorcallback? onerror ;unsigned long addsystemconfigchangelistener productinfoconfigkey key, productinfoconfigchangecallback listener ;void removesystemconfigchangelistener unsigned long listenerid ;boolean isuhdamodel ;boolean isdisplayrotatorsupported ;domstring getlicensedvendor ;boolean isoledpanelsupported ; productinfoconfigchangecallback void onchange productinfoconfigkey key ; productinfoconfigkey productinfonoglass3dsupport productinfosiservertype 1 interfaces 1 1 productinfomanagerobject defines a webapi object instance of the tizen samsung product api the webapis productinfo object enables access to productinfo api functionality [nointerfaceobject] interface productinfomanagerobject { readonly attribute productinfomanager productinfo; }; webapi implements productinfomanagerobject; attributes readonly productinfomanager productinfo productinfo api namespace 1 2 productinfomanager provides methods for productinfo functionalities [nointerfaceobject] interface productinfomanager { attribute productinfoconfigkey productinfoconfigkey; attribute productinfonoglass3dsupport productinfonoglass3dsupport; attribute productinfosiservertype productinfosiservertype; domstring getversion ; domstring getfirmware ; domstring getduid ; domstring getmodelcode ; domstring getmodel ; productinfosiservertype getsmarttvservertype ; domstring getsmarttvserverversion ; boolean isudpanelsupported ; boolean is8kpanelsupported ; domstring getrealmodel ; boolean iswallmodel ; domstring getlocalset ; any getsystemconfig productinfoconfigkey key ; void setsystemconfig productinfoconfigkey key, domstring value, optional successcallback? onsuccess, optional errorcallback? onerror ; unsigned long addsystemconfigchangelistener productinfoconfigkey key, productinfoconfigchangecallback listener ; void removesystemconfigchangelistener unsigned long listenerid ; boolean isuhdamodel ; boolean isdisplayrotatorsupported ; domstring getlicensedvendor ; boolean isoledpanelsupported ; }; attributes productinfoconfigkey productinfoconfigkey product info configuration key since 2 3 productinfonoglass3dsupport productinfonoglass3dsupport glasses-free 3d support since 2 3 productinfosiservertype productinfosiservertype infolink server type since 2 3 methods getversion retrieves the plugin version number domstring getversion ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value domstring plugin version exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 2 3 code example try { var value = webapis productinfo getversion ; console log " version value = " + value ; } catch error { console log " error code = " + error code ; } getfirmware retrieves the firmware information domstring getfirmware ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value domstring firmware version exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 2 3 code example try { var value = webapis productinfo getfirmware ; console log " firmware value = " + value ; } catch error { console log " error code = " + error code ; } getduid retrieves the duid domstring getduid ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value domstring duid exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 2 3 code example try { var value = webapis productinfo getduid ; console log " duid value = " + value ; } catch error { console log " error code = " + error code ; } getmodelcode retrieves the model code, such as "15_hawkp" domstring getmodelcode ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value domstring model code exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 2 3 code example try { var value = webapis productinfo getmodelcode ; console log " modelcode value = " + value ; } catch error { console log " error code = " + error code ; } getmodel retrieves the model name, such as "ujs9500" domstring getmodel ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value domstring model name exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 2 3 code example try { var value = webapis productinfo getmodel ; console log " model value = " + value ; } catch error { console log " error code = " + error code ; } getsmarttvservertype retrieves the infolink server type productinfosiservertype getsmarttvservertype ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value productinfosiservertype infolink server type exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 2 3 code example try { var value = webapis productinfo getsmarttvservertype ; console log " smart tv server type = " + value ; } catch error { console log " error code = " + error code ; } getsmarttvserverversion retrieves the infolink server version, such as "t-infolink2014-1002" domstring getsmarttvserverversion ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value domstring infolink server version exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 2 3 code example try { var value = webapis productinfo getsmarttvserverversion ; console log " smart tv server version = " + value ; } catch error { console log " error code = " + error code ; } isudpanelsupported checks whether udpanel is supported boolean isudpanelsupported ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value boolean boolean value true supported false not supported exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 2 3 code example try { var value = webapis productinfo isudpanelsupported ; console log " support = " + value ; } catch error { console log " error code = " + error code ; } is8kpanelsupported checks whether 8k panel is supported boolean is8kpanelsupported ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value boolean boolean value true supported false not supported exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 4 0 code example try { var value = webapis productinfo is8kpanelsupported ; console log " support = " + value ; } catch error { console log " error code = " + error code ; } getrealmodel retrieves the full model name, such as un65js9500 domstring getrealmodel ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value domstring model name exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 2 3 code example try { var value = webapis productinfo getrealmodel ; console log " modelname value = " + value ; } catch error { console log " error code = " + error code ; } iswallmodel checks whether the product model is wall boolean iswallmodel ; product tv, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value boolean boolean value true wall model false not wall model exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 5 0 code example try { var value = webapis productinfo iswallmodel ; console log value ; } catch error { console log " error code = " + error code ; } getlocalset retrieves the local set domstring getlocalset ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value domstring localset value exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 2 3 code example try { var value = webapis productinfo getlocalset ; console log " localset value = " + value ; } catch error { console log " error code = " + error code ; } getsystemconfig retrieves the value for the specified system configuration key, such as service country code any getsystemconfig productinfoconfigkey key ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo parameters key product info configuration key return value any system configuration value only for config_key_aot_support key the return type is boolean, the return type for other case is domstring exceptions webapiexception with error type typemismatcherror, if an input parameter is not compatible with its expected type with error type invalidvalueserror, if any of the input parameters contain an invalid value since plugin version 3 0 with error type securityerror, if the application does not have the privilege to call this method since 2 3 code example try { var value = webapis productinfo getsystemconfig webapis productinfo productinfoconfigkey config_key_data_service ; console log "systemconfig value = " + value ; } catch error { console log " error code = " + error code ; } setsystemconfig sets the value for the specified system configuration key void setsystemconfig productinfoconfigkey key, domstring value, optional successcallback? onsuccess, optional errorcallback? onerror ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo parameters key product info configuration key value value to set onsuccess [optional][nullable] callback method to invoke when the system configuration key value is successfully set onerror [optional][nullable] callback method to invoke if an error has occurred securityerror, if the application does not have the privilege to call this method exceptions webapiexception with error type typemismatcherror, if an input parameter is not compatible with its expected type with error type invalidvalueserror, if any of the input parameters contain an invalid value if only setsystemconfig can set config_key_data_service or config_key_active_category since plugin version 3 0 with error type notsupportederror, if 'config_key_service_country' is readonly deprecated since plugin version 3 0 with error type notsupportederror, if 'config_key_shoplogo' is readonly deprecated since plugin version 3 0 since 2 3 code example function onsuccess data { console log "systemconfig data = " + data ; } function onerror error { console log "error code " + error code ; } try { webapis productinfo setsystemconfig webapis productinfo productinfoconfigkey config_key_data_service, value, onsuccess, onerror ; } catch error { console log " error code = " + error code ; } addsystemconfigchangelistener registers a system configuration change listener unsigned long addsystemconfigchangelistener productinfoconfigkey key, productinfoconfigchangecallback listener ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo parameters key productinfo configuration key listener productinfoconfigchangecallback listener return value unsigned long listener id exceptions webapiexception with error type typemismatcherror, if an input parameter is not compatible with its expected type with error type invalidvalueserror, if any of the input parameters contain an invalid or unchangeable value since plugin version 3 0 with error type securityerror, if the application does not have the privilege to call this method since 2 3 code example try { var value = webapis productinfo addsystemconfigchangelistener webapis productinfo productinfoconfigkey config_key_data_service, listener ; console log " add listener value = " + value ; } catch error { console log " error code = " + error code ; } removesystemconfigchangelistener unregisters a system configuration change listener void removesystemconfigchangelistener unsigned long listenerid ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo parameters listenerid productinfoconfigchangecallback id exceptions webapiexception with error type typemismatcherror, if an input parameter is not compatible with its expected type with error type invalidvalueserror, if any of the input parameters contain an invalid value since plugin version 3 0 with error type securityerror, if the application does not have the privilege to call this method since 2 3 code example try { webapis productinfo removesystemconfigchangelistener listenerid ; console log " removedlistener value " ; } catch error { console log " error code = " + error code ; } isuhdamodel checks whether the device supports ultra hd premium features boolean isuhdamodel ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value boolean boolean value true supported false not supported exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 3 0 code example try { var value = webapis productinfo isuhdamodel ; console log " support = " + value ; } catch error { console log " error code = " + error code ; } isdisplayrotatorsupported this method check whether display rotator is supported or not boolean isdisplayrotatorsupported ; product tv privilege n return value boolean true if display rotator is supported, else false since 5 5 code example var value = webapis productinfo isdisplayrotatorsupported ; console log "display rotator is supported = " + value ; getlicensedvendor this method get an actual manufacturer's information domstring getlicensedvendor ; product tv, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value domstring actual manufacturer information exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 6 0 code example try { var value = webapis productinfo getlicensedvendor ; console log " getlicensedvendor value = " + value ; } catch error { console log " error code = " + error code ; } isoledpanelsupported checks whether oledpanel is supported boolean isoledpanelsupported ; product tv, b2b privilege level public privilege http //developer samsung com/privilege/productinfo return value boolean boolean value true supported false not supported exceptions webapiexception with error type securityerror, if the application does not have the privilege to call this method since 8 0 code example try { var value = webapis productinfo isoledpanelsupported ; console log " support = " + value ; } catch error { console log " error code = " + error code ; } 1 3 productinfoconfigchangecallback defines the product info configuration change callback [callback = functiononly, nointerfaceobject] interface productinfoconfigchangecallback { void onchange productinfoconfigkey key ; }; methods onchange callback method for product info configuration changes void onchange productinfoconfigkey key ; product tv, av, b2b privilege level public privilege http //developer samsung com/privilege/productinfo parameters key key of each productinfo config since 2 3 code example var onchange = function key { console log " changed key is = " + key ; } 1 4 productinfoconfigkey defines constants for product info configuration keys [nointerfaceobject] interface productinfoconfigkey { const unsigned long config_key_data_service = 0; const unsigned long config_key_service_country = 1; }; since 2 3 constants config_key_data_service data service configuration, it can be setted as string ype with numbers since 2 3 config_key_service_country service country, readonly since 2 3 1 5 productinfonoglass3dsupport defines constants for glasses-free 3d support [nointerfaceobject] interface productinfonoglass3dsupport { const unsigned long no_glass_3d_not_supported = 0; const unsigned long no_glass_3d_supported = 1; }; since 2 3 constants no_glass_3d_not_supported glasses-free 3d is not supported since 2 3 no_glass_3d_supported glasses-free 3d is supported since 2 3 1 6 productinfosiservertype defines constants for infolink server types [nointerfaceobject] interface productinfosiservertype { const unsigned long si_type_operatiing_server = 0; const unsigned long si_type_development_server = 1; const unsigned long si_type_developing_server = 2; }; since 2 3 constants si_type_operatiing_server operating since 2 3 si_type_development_server development since 2 3 si_type_developing_server developing since 2 3 2 full webidl module productinfo { [nointerfaceobject] interface productinfomanagerobject { readonly attribute productinfomanager productinfo; }; webapi implements productinfomanagerobject; [nointerfaceobject] interface productinfomanager { attribute productinfoconfigkey productinfoconfigkey; attribute productinfonoglass3dsupport productinfonoglass3dsupport; attribute productinfosiservertype productinfosiservertype; domstring getversion ; domstring getfirmware ; domstring getduid ; domstring getmodelcode ; domstring getmodel ; productinfosiservertype getsmarttvservertype ; domstring getsmarttvserverversion ; boolean isudpanelsupported ; boolean is8kpanelsupported ; domstring getrealmodel ; boolean iswallmodel ; domstring getlocalset ; any getsystemconfig productinfoconfigkey key ; void setsystemconfig productinfoconfigkey key, domstring value, optional successcallback? onsuccess, optional errorcallback? onerror ; unsigned long addsystemconfigchangelistener productinfoconfigkey key, productinfoconfigchangecallback listener ; void removesystemconfigchangelistener unsigned long listenerid ; boolean isuhdamodel ; boolean isdisplayrotatorsupported ; domstring getlicensedvendor ; boolean isoledpanelsupported ; }; [callback = functiononly, nointerfaceobject] interface productinfoconfigchangecallback { void onchange productinfoconfigkey key ; }; [nointerfaceobject] interface productinfoconfigkey { const unsigned long config_key_data_service = 0; const unsigned long config_key_service_country = 1; }; [nointerfaceobject] interface productinfonoglass3dsupport { const unsigned long no_glass_3d_not_supported = 0; const unsigned long no_glass_3d_supported = 1; }; [nointerfaceobject] interface productinfosiservertype { const unsigned long si_type_operatiing_server = 0; const unsigned long si_type_development_server = 1; const unsigned long si_type_developing_server = 2; }; };