top

NService

Published 2014-10-28 | (Compatible with SDK 4.5,5.0,5.1 and 2012,2013,2014 models)

This module deals with handling of interaction between HHP device(Smartphone) applications and Smart TV applications.

The NService interface module includes the following:

Interface Constant/Attribute/Method
Constants  
NServiceDeviceManager

void getNServiceDevices (successCallback, errorCallback)

void registerManagerCallback (callbackFn(ManagerEvent))

Number broadcastMessage (DOMString message)

Number multicastMessage (DOMString groupID, DOMString messasge)

NServiceDevice

DOMString getUniqueID ()

DOMString getDeviceID ()

DOMString getName ()

Number getType ()

Number sendMessage (DOMString message)

void registerDeviceCallback ( callbackFn(NServiceDeviceEventInfo) )

void unregisterDeviceCallback ()

ManagerEvent

Number eventType

DOMString deviceName

DOMString uniqueID

Number deviceType

NServiceDeviceEventInfo

Number eventType

NServiceDeviceMessageInfo eventData or NServiceDeviceGroupInfo eventData

NServiceDeviceGroupInfo DOMString groupName
NServiceDeviceMessageInfo

DOMString message

DOMString context

Warning

This module is only supported on Samsung Smart TV models for 2012 and later. Samsung SDK 4.1 or higher could be used for development of NService applications.