NNAVI
Controls Samsung Smart TV-specific commands on the DTV platform (for example, DUID, ServerType, and so on).
Add the following line for NNavi class into a html file your own : <object id="plugin" classid="clsid:SAMSUNG-INFOLINK-SEF" style="width:0px; height:0px;"></object> |
You can declare NNavi class like this : ex) plugin = document.getElementById("plugin"); plugin.Open('NNavi', '1.016', 'NNavi'); plugin.Execute('method', 'parm1', 'parm2'); |
Contents
Constants
Name | Value | Description |
PL_NNAVI_SYSTEM_VERSION_LEEUM | 0 | The LEEUM Platform version |
PL_NNAVI_SYSTEM_VERSION_COMP | 1 | The COMP version |
PL_ST_SERVICE | 0 | Official Release server |
PL_ST_DEVELOPMENT | 1 | Development server for testing |
PL_ST_DEVELOPING | 2 | Developing server including testing and only for developer |
Methods
GetServerType | ||
Description | ||
The GetServerType returns whether now Samsung Hubsite is for Development or Official release. | ||
Parameters | none | |
Return | ■Success - returns one of PL_ST_SERVICE, PL_ST_DEVELOPMENT, PL_ST_DEVELOPING ■Fail - return error code | |
Emulator Support | Y | |
SDK Constraint | None | |
Example | ||
var serverType; serverType = SefPlugin.Execute("GetServerType"); alert(serverType); |
GetFirmware | ||
Description | ||
The GetFirmware plugin command gets the firmware version used by Samsung Smart TV to check the native source code version. | ||
Parameters | none | |
Return | ■Success - firmware version (for example, T-SPHAKRC-1000) ■Fail - error code | |
Emulator Support | Y | |
SDK Constraint | None | |
Example | ||
var firmware; firmware = SefPlugin.Execute("GetFirmware"); alert(firmware); |
GetAppKey | ||
Description | ||
The GetAppKey function returns AppKey of DTV. DTV uses this key when communicating with Samsung Hubsite, and Samsung Hubsite can recognize this device is a Samsung DTV by this key. | ||
Parameters | none | |
Return | ■Success - return AppKey ■Fail - returns error code | |
Emulator Support | Y | |
SDK Constraint | None | |
Example | ||
var appKey; appKey = SefPlugin.Execute("GetAppKey"); alert(appKey); |
GetDUID | ||
Description | ||
The GetDUID function gets DUID (Device Unique ID) of each DTV. | ||
Parameters | ■MAC - String - MAC: The MAC address of each DTV. The widget can get the MAC Address by using the Network module. | |
Return | ■Success - DUID of each DTV (for example, 7XCBNROQJQPYW) ■Fail - error code | |
Emulator Support | Y | |
SDK Constraint | None | |
Example | ||
var DUID; var MAC; MAC = SefPlugin.Execute("GetHWAddr"); var DUID = NNaviPlugin.NNaviEmp.Execute('GetDUID(', NNaviEmp.Execute('MAC);')); alert(DUID); |
GetModel | ||
Description | ||
This API is used to get the Model of the Device. | ||
Parameters | None | |
Return | ■String - success : returns the model code(e.g: 14_GOLFP) of the Device. - fail : returns negative number | |
Emulator Support | Yes | |
SDK Constraint | None | |
Example | ||
var ret = SefPlugin.Execute("GetModel"); console.log("Result = " + ret); |
GetSystemVersion | ||
Description | ||
The GetSystemVersion function gets the system version of the specified version type. | ||
Parameters | ■versionType
- PL_NNAVI_SYSTEM_VERSION - PL_NNAVI_SYSTEM_VERSION plugin enumeration defines the system versions. * PL_NNAVI_SYSTEM_VERSION_LEEUM : version of leeum platform, * PL_NNAVI_SYSTEM_VERSION_COMP : version of advanced platform | |
Return | ■Success
- version information ■Fail - error code | |
Emulator Support | Y | |
SDK Constraint | None | |
Example | ||
SefPlugin.Execute("GetSystemVersion",PL_NNAVI_SYSTEM_VERSION_LEEUM);
SefPlugin.Execute("GetSystemVersion",PL_NNAVI_SYSTEM_VERSION_COMP); |
SetBannerState | ||
Description | ||
The SetBannerState function sets the banner state. | ||
Parameters | ■nSTATE - Integer - The Widgets Manager type - 0: Not Overwrapped OSD 1: Overwapped Volume OSD 2: Overwapped Volume and Channel OSD | |
Return | ■Boolean - Always returns true. | |
Emulator Support | Y | |
SDK Constraint | None | |
Example | ||
var type; SefPlugin.Execute("SetBannerState", 1); |
GetModelCode | ||
Description | ||
The GetModelCode function gets the model code modified for Samsung Smart TV. | ||
Parameters | none | |
Return | ■Success - modified model code ■Fail - error code | |
Emulator Support | Y | |
SDK Constraint | None | |
Example | ||
SefPlugin.Execute("GetModel"); |