# Built-In Namespace _global_

## Event Detail

beacon_device_discovered()
Events for the result of hcap.beacon.startScan().
Its listener will be invoked whenever data on the beacon device is discovered.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "beacon_device_discovered",
         function (param) {
             // {Array} param.devices- Beacon device list
             // {Array} param.devices[].scanRecord[] - Beacon device scanned record.
             // {String} param.devices[].address - Beacon device address.
             // {Number} param.devices[].rssi - RSSI value of device.
             console.log(
                 "Event 'beacon_device_discovered' is received.\n" +
                 "devices length = " + param.devices.length
             );
             for (var i = 0; i < param.devices.length; i++) {
                 console.log("discovered device[" + i + "] scanRecord = " + param.devices[i].scanRecord + ", address = " + param.devices[i].address + ", rssi = " + param.devices[i].rssi);
             }
         },
         false
    );

Since:
  1.24.6

See:
  hcap.beacon.startScan()
  hcap.beacon.stopScan()

bluetooth_event_received()
Event for the bluetooth notification.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "bluetooth_event_received",
         function (param) {
             // {String} param.eventType - bluetooth event type ("bt_gap_find_devices_result" / "bt_service_status_changed")
             // {Object} param.btGapFindDevicesResult - event data for the event type "bt_gap_find_devices_result"
             //      {
             //          {String} scanState - scan state ("found_devices" : devices are found / "done" : scanning is done with no device found)
             //          {Array} list - device list
             //                  {String} list[].name - device name
             //                  {Number} list[].class - device class
             //                  {String} list[].address - BD (Bluetooth Device) address
             //                  {Number} list[].rssi - RSSI value of device
             //      }
             // {Object} param.btServiceStatusChanged - event data for the event type "bt_service_status_changed"
             //      {
             //          {String} listType - list type ("discovered"/"bonded"/"none")
             //          {String} state - device connection state ("connected"/"disconnected"/"connecting"/"disconnecting"/"none")
             //          {String} address - BD (Bluetooth Device) address
             //          {String} service - service profile ("hid" : HID profile / "audio" : audio src(A2DP) profile / "opc" : OPC profile / "audio_sink" : audio sink(A2DP) profile)
             //          {String} name - device name
             //      }
             console.log("Event 'bluetooth_event_received' is received.");
             if (param.eventType === "bt_gap_find_devices_result") {
                 console.log("scan state = " + param.btGapFindDevicesResult.scanState);
                 for (var i = 0; i < param.btGapFindDevicesResult.list.length; i++) {
                     console.log("found device[" + i + "] name = " + param.btGapFindDevicesResult.list[i].name + ", class = " + param.btGapFindDevicesResult.list[i].class + ", BD address = " + param.btGapFindDevicesResult.list[i].address + ", rssi = " + param.btGapFindDevicesResult.list[i].rssi);
                 }
             } else if (param.eventType === "bt_service_status_changed") {
                 console.log("listType = " + param.btServiceStatusChanged.listType + ", state = " + param.btServiceStatusChanged.state + ", BD address = " + param.btServiceStatusChanged.address + ", service profile = " + param.btServiceStatusChanged.service + ", name = " + param.btServiceStatusChanged.name);
             }
         },
         false
    );

Since:
  1.19.0

See:
  hcap.bluetooth.disconnect()
  hcap.bluetooth.setScanState()

carousel_data_cached()
Event for the carousel data cache.
Its listener will be invoked whenever a carousel data is cached.
This event is caused by hcap.carousel.requestCacheCarouselData().
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "carousel_data_cached",
         function (param) {
             // {Boolean} param.result - true if a carousel data is cached successfully, else false.
             // {String} param.errorMessage - in case of failure, this message provides the details.
             // {String} param.url - url of the cached carousel data.
             // {String} param.cachePath - path where the carousel data is cached.
             console.log(
                 "Event 'carousel_data_cached' is received.\n" +
                 "Result = " + param.result + "\n" +
                 "Error message = " + param.errorMessage + "\n" +
                 "URL = " + param.url + "\n" +
                 "Cache Path = " + param.cachePath
             );
         },
         false
    );

Since:
  1.3.1

See:
  hcap.carousel.clearCarouselDataCache()
  hcap.carousel.isCarouselDataCached
  hcap.carousel.requestCacheCarouselData

cec_data_received()
Event for receiving the CEC data.
Its listener will be invoked whenever CEC data is received.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "cec_data_received",
         function (param) {
             // {String} param.data - data that is transferred from the CEC device
             console.log(
                 "Event 'cec_data_received' is received.\n" +
                 "Data = " + param.data
             );
         },
         false
    );

Since:
  1.24.0

channel_changed()
Event for the channel change.
Its listener will be invoked whenever the current channel is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "channel_changed",
         function (param) {
             // {Boolean} param.result - true if the current channel is changed successfully, else false.
             // {String} param.errorMessage - in case of failure, this message provides the details.
             console.log(
                 "Event 'channel_changed' is received.\n" +
                 "Result = " + param.result + "\n" +
                 "Error message = " + param.errorMessage
             );
         },
         false
    );

Since:
  1.3.1

See:
  hcap.channel.getCurrentChannel()
  hcap.channel.requestChangeCurrentChannel()

channel_status_changed()
Event for the channel status change.
Its listener will be invoked whenever the current channel status is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "channel_status_changed",
         function yourEventListener() {
             console.log(
                 "Event 'channel_status_changed' is received"
             );
         },
         false
    );

Since:
  1.14.0

See:
  hcap.channel.getCurrentChannel()

cloning_done_received()
Event for the cloning done.
Its listener will be invoked whenever the cloning is done.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "cloning_done_received",
         function (param) {
             // {Boolean} param.result - true if the cloning is done successfully, else false.
             console.log(
                 "Event 'cloning_done_received' is received.\n" +
                 "Result = " + param.result
             );
         },
         false
    );

Since:
  1.19.0

See:
  hcap.system.requestCloning()

current_channel_audio_language_changed()
Event for the audio language change of the current channel.
Its listener will be invoked whenever the audio language of the current channel is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "current_channel_audio_language_changed",
         function() {
             console.log("Event 'current_channel_audio_language_changed' is received.");
         },
         false
    );

Since:
  1.3.1

See:
  hcap.channel.getCurrentChannelAudioLanguageIndex()
  hcap.channel.setCurrentChannelAudioLanguageIndex()
  hcap.channel.getCurrentChannelAudioLanguageList()

current_channel_subtitle_changed()
Event for the subtitle change of the current channel.
Its listener will be invoked whenever the subtitle of the current channel is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "current_channel_subtitle_changed",
         function() {
             console.log("Event 'current_channel_subtitle_changed' is received.");
         },
         false
    );

Since:
  1.3.1

See:
  hcap.channel.getCurrentChannelSubtitleIndex()
  hcap.channel.setCurrentChannelSubtitleIndex()
  hcap.channel.getCurrentChannelSubtitleList()

external_input_changed()
Event for the external input change.
Its listener will be invoked whenever the external input is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "external_input_changed",
         function() {
             console.log("Event 'external_input_changed' is received.");
         },
         false
    );

Since:
  1.3.1

See:
  hcap.externalinput.getCurrentExternalInput()
  hcap.externalinput.isExternalInputConnected()
  hcap.externalinput.setCurrentExternalInput() hcap.externalinput.getExternalInputList()

hcap_application_focus_changed()
Event for the focus change of HCAP application.
Its listener will be invoked whenever the focus is moved from HCAP application to preloaded application, or vice versa except when HCAP mode is 0 (hcap.mode.HCAP_MODE_0).

HCAP Application Focus Event Type String
"focused"
"unfocused"
HCAP Application Focus Event Type

Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "hcap_application_focus_changed",
         function (param) {
             // {String} param.eventType - HCAP application focus event type
             console.log("event type = " + param.eventType);
         },
         false
    );

Since:
  1.18.2

hdmi_connection_changed()
Event for the result of HDMI connection change.
Its listener will be invoked whenever a HDMI is connected or disconnected.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "hdmi_connection_changed",
         function (param) {
             // {Number} param.index - index of the HDMI which was connected or disconnected.
             // {Boolean} param.connected - true if the HDMI is connected, else false.
             console.log(
                 "Event 'hdmi_connection_changed' is received.\n" +
                 "HDMI-" + param.index + " : " + "connected = " + param.connected
             );
         },
         false
    );

Since:
  1.20.0

inband_data_service_ready()
Event for readiness of inband data service in the current channel.
Its listener will be invoked whenever the availability of the inband data service application in the current channel is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "inband_data_service_ready",
         function (param) {
             // {Number} param.inband_data_service_type - inband data service type. (hcap.channel.InbandDataServiceType)
             console.log(
                 "Event 'inband_data_service_ready' is received.\n" +
                 "inband_data_service_type = " + param.inband_data_service_type
             );
         },
         false
    );

Since:
  1.6.0

See:
  hcap.channel.launchInbandDataService()
  hcap.channel.InbandDataServiceType.MHP
  hcap.channel.InbandDataServiceType.MHEG
  hcap.channel.InbandDataServiceType.HBBTV
  hcap.channel.InbandDataServiceType.NONE

iot_binding_ready()
Event for a binding ready.
It is invoked whenever a binding is ready to control.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "iot_binding_ready",
         function (param) {
             // {String} param.bindingId - binding ID ready to conrol.
             console.log(
                 "Event 'iot_binding_ready' is received.\n" +
                 "bindingId = " + param.bindingId + "\n" +
             );
         },
         false
    );

Since:
  1.22.2

See:
  {Event} iot_thing_discovered
  {Event} iot_bridge_status_changed
  {Event} iot_thing_registered
  {Event} iot_thing_rejected
  {Event} iot_component_reported
  {Event} iot_thing_unregistered
  {Event} iot_thing_meta_data_changed
  {Event} iot_set_component_result_received
  {Event} iot_framework_status_changed
  {Event} iot_factory_reset_result_received
  hcap.iot.requestSetBridgeStatus()
  hcap.iot.getBridgeStatus()
  hcap.iot.requestRegisterThing()
  hcap.iot.requestRejectThing()
  hcap.iot.getThingList()
  hcap.iot.getBindingIdList()
  hcap.iot.requestSetComponent()
  hcap.iot.requestUnregisterThing()
  hcap.iot.setThingNickname()
  hcap.iot.requestSynchronizeThing()
  hcap.iot.getFrameworkStatus()
  hcap.iot.requestFactoryReset()
  hcap.iot.getVersions()

iot_bridge_status_changed()
Event for the status change of a bridge.
Its listener will be invoked whenever a bridge status is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "iot_bridge_status_changed",
         function (param) {
             // {String} param.bridgeUid - bridge UID.
             // {String} param.status - the bridge status after the change. "scan" for scan status, "normal" for normal (non-scan) status.
             console.log("Event 'iot_bridge_status_changed' is received.\n" +
                 "bridgeUid = " + param.bridgeUid + "\n" +
                 "status = " + param.status
             );
         },
         false
    );

Since:
  1.22.2

See:
  {Event} iot_binding_ready
  {Event} iot_thing_discovered
  {Event} iot_thing_registered
  {Event} iot_thing_rejected
  {Event} iot_component_reported
  {Event} iot_thing_unregistered
  {Event} iot_thing_meta_data_changed
  {Event} iot_set_component_result_received
  {Event} iot_framework_status_changed
  {Event} iot_factory_reset_result_received
  hcap.iot.requestSetBridgeStatus()
  hcap.iot.getBridgeStatus()
  hcap.iot.requestRegisterThing()
  hcap.iot.requestRejectThing()
  hcap.iot.getThingList()
  hcap.iot.getBindingIdList()
  hcap.iot.requestSetComponent()
  hcap.iot.requestUnregisterThing()
  hcap.iot.setThingNickname()
  hcap.iot.requestSynchronizeThing()
  hcap.iot.getFrameworkStatus()
  hcap.iot.requestFactoryReset()
  hcap.iot.getVersions()

iot_component_reported()
Event for the report of a component of a thing.
Its listener will be invoked whenever a binding reports the component.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "iot_component_reported",
         function (param) {
             // {String} param.thingUid - thing UID.
             // {String} param.componentId - component ID.
             // {Object} param.fromValue - |ComponentValue|, // previous component value of changed
             // {Object} param.toValue - |ComponentValue|, // later component value of changed
                 // {Object} |ComponentValue| - json object of a component value
                 //     {
                 //       "valueType": |string|, // "Unknown", "String", "Boolean", "Variables", "Double", "Float", "Int8", "Int16", "Int32", "Int64", "UInt8", "UInt16", "UInt32", "UInt64"
                 //       "value": |string|, // value
                 //       "additionalValue": |string|, // custom additional value as a string
                 //     }
             console.log(
                 "Event 'iot_component_reported' is received.\n" +
                 "thingUid = " + param.thingUid + "\n" +
                 "componentId = " + param.componentId + "\n" +
                 "fromValue = " + JSON.stringify(param.fromValue) + "\n" +
                 "toValue = " + JSON.stringify(param.toValue)
             );
         },
         false
    );

Since:
  1.22.2

See:
  {Event} iot_binding_ready
  {Event} iot_thing_discovered
  {Event} iot_bridge_status_changed
  {Event} iot_thing_registered
  {Event} iot_thing_rejected
  {Event} iot_thing_unregistered
  {Event} iot_thing_meta_data_changed
  {Event} iot_set_component_result_received
  {Event} iot_framework_status_changed
  {Event} iot_factory_reset_result_received
  hcap.iot.requestSetBridgeStatus()
  hcap.iot.getBridgeStatus()
  hcap.iot.requestRegisterThing()
  hcap.iot.requestRejectThing()
  hcap.iot.getThingList()
  hcap.iot.getBindingIdList()
  hcap.iot.requestSetComponent()
  hcap.iot.requestUnregisterThing()
  hcap.iot.setThingNickname()
  hcap.iot.requestSynchronizeThing()
  hcap.iot.getFrameworkStatus()
  hcap.iot.requestFactoryReset()
  hcap.iot.getVersions()

iot_factory_reset_result_received()
Event for the action result of IoT framework status.
Its listener will be invoked whenever the factory reset for core DB and binding DBs is requested.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "iot_factory_reset_result_received",
         function (param) {
             // {Array} param.factoryResetResultList - |FactoryResetResult| // list of factory reset results.
                 // {Object} |FactoryResetResult| - json object of a factory reset result.
                 //     {
                 //       "id": |string|,  // "Core" or binding ID
                 //       "factoryResetResult": |boolean|, // facotry reset result
                 //     }
             console.log(
                 "Event 'iot_factory_reset_result_received' is received.\n" +
                 "factory reset result list = " + JSON.stringify(param.factoryResetResultList)
             );
         },
         false
    );

Since:
  1.22.2

See:
  {Event} iot_binding_ready
  {Event} iot_thing_discovered
  {Event} iot_bridge_status_changed
  {Event} iot_thing_registered
  {Event} iot_thing_rejected
  {Event} iot_component_reported
  {Event} iot_thing_unregistered
  {Event} iot_thing_meta_data_changed
  {Event} iot_framework_status_changed
  hcap.iot.requestSetBridgeStatus()
  hcap.iot.getBridgeStatus()
  hcap.iot.requestRegisterThing()
  hcap.iot.requestRejectThing()
  hcap.iot.getThingList()
  hcap.iot.getBindingIdList()
  hcap.iot.requestSetComponent()
  hcap.iot.requestUnregisterThing()
  hcap.iot.setThingNickname()
  hcap.iot.requestSynchronizeThing()
  hcap.iot.getFrameworkStatus()
  hcap.iot.requestFactoryReset()
  hcap.iot.getVersions()

iot_framework_status_changed()
Event for the change of IoT framework status.
Its listener will be invoked whenever the IoT framework status is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "iot_framework_status_changed",
         function (param) {
             // {String} param.status - "off" : framework is off, "initializing" : framework is initializing, "ready" : framework is ready.
             console.log(
                 "Event 'iot_framework_status_changed' is received.\n" +
                 "status = " + param.status
             );
         },
         false
    );

Since:
  1.22.2

See:
  {Event} iot_binding_ready
  {Event} iot_thing_discovered
  {Event} iot_bridge_status_changed
  {Event} iot_thing_registered
  {Event} iot_thing_rejected
  {Event} iot_component_reported
  {Event} iot_thing_unregistered
  {Event} iot_thing_meta_data_changed
  {Event} iot_factory_reset_result_received
  hcap.iot.requestSetBridgeStatus()
  hcap.iot.getBridgeStatus()
  hcap.iot.requestRegisterThing()
  hcap.iot.requestRejectThing()
  hcap.iot.getThingList()
  hcap.iot.getBindingIdList()
  hcap.iot.requestSetComponent()
  hcap.iot.requestUnregisterThing()
  hcap.iot.setThingNickname()
  hcap.iot.requestSynchronizeThing()
  hcap.iot.getFrameworkStatus()
  hcap.iot.requestFactoryReset()
  hcap.iot.getVersions()

iot_set_component_result_received()
Event for the result of hcap.iot.requestSetComponent().
Its listener will be invoked whenever the result of hcap.iot.requestSetComponent() is received.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "iot_set_component_result_received",
         function (param) {
             // {Boolean} param.result - true for the success, otherwise false.
             // {String} param.callId - callId of the callId in hcap.iot.requestSetComponent().
             console.log(
                 "Event 'iot_set_component_result_received' is received.\n" +
                 "result = " + param.result + "\n" +
                 "callId = " + param.callId
             );
         },
         false
    );

Since:
  1.22.2

See:
  {Event} iot_binding_ready
  {Event} iot_thing_discovered
  {Event} iot_bridge_status_changed
  {Event} iot_thing_registered
  {Event} iot_thing_rejected
  {Event} iot_component_reported
  {Event} iot_thing_unregistered
  {Event} iot_thing_meta_data_changed
  {Event} iot_framework_status_changed
  {Event} iot_factory_reset_result_received
  hcap.iot.requestSetBridgeStatus()
  hcap.iot.getBridgeStatus()
  hcap.iot.requestRegisterThing()
  hcap.iot.requestRejectThing()
  hcap.iot.getThingList()
  hcap.iot.getBindingIdList()
  hcap.iot.requestSetComponent()
  hcap.iot.requestUnregisterThing()
  hcap.iot.setThingNickname()
  hcap.iot.requestSynchronizeThing()
  hcap.iot.getFrameworkStatus()
  hcap.iot.requestFactoryReset()
  hcap.iot.getVersions()

iot_thing_discovered()
Event for the discovery of a thing.
Its listener will be invoked whenever a thing is discovered in the bridge "scan" mode.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "iot_thing_discovered",
         function (param) {
             // {String} param.bindingId - binding ID of the bridge a thing is discovered.
             // {String} param.thingUid - thing UID to be discovered.
             // {String} param.thingId - thing ID.
             // {String} param.label - thing label.
             console.log(
                 "Event 'iot_thing_discovered' is received.\n" +
                 "bindingId = " + param.bindingId + "\n" +
                 "thingUid = " + param.thingUid + "\n" +
                 "thingId = " + param.thingId + "\n" +
                 "label = " + param.label
             );
         },
         false
    );

Since:
  1.22.2

See:
  {Event} iot_binding_ready
  {Event} iot_bridge_status_changed
  {Event} iot_thing_registered
  {Event} iot_thing_rejected
  {Event} iot_component_reported
  {Event} iot_thing_unregistered
  {Event} iot_thing_meta_data_changed
  {Event} iot_set_component_result_received
  {Event} iot_framework_status_changed
  {Event} iot_factory_reset_result_received
  hcap.iot.requestSetBridgeStatus()
  hcap.iot.getBridgeStatus()
  hcap.iot.requestRegisterThing()
  hcap.iot.requestRejectThing()
  hcap.iot.getThingList()
  hcap.iot.getBindingIdList()
  hcap.iot.requestSetComponent()
  hcap.iot.requestUnregisterThing()
  hcap.iot.setThingNickname()
  hcap.iot.requestSynchronizeThing()
  hcap.iot.getFrameworkStatus()
  hcap.iot.requestFactoryReset()
  hcap.iot.getVersions()

iot_thing_meta_data_changed()
Event for the change of a thing meta data.
Its listener will be invoked whenever a meta data of a thing is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "iot_thing_meta_data_changed",
         function (param) {
             // {String} param.thingUid - UID of the changed thing
             // {Object} param.thingMetaData - |ThingMetaData|, // later meta data of changed
                 // {Object} |ThingMetaData| - json object of the meta data of a thing
                 //     {
                 //       "hardwareVersion": |string|,  // thing hardware version
                 //       "softwareVersion": |string|, // thing software version
                 //       "registrationDate": |string|, // date the thing was registered
                 //       "label": |string|, //thing label
                 //       "modelName": |string|, //thing model name
                 //       "manufacturer": |string|, //thing manufacturer
                 //       "nickname": |string|, //thing nickname
                 //     }
             console.log(
                 "Event 'iot_thing_meta_data_changed' is received.\n" +
                 "thingUid = " + param.thingUid
                 "thingMetaData = " + JSON.stringify(param.thingMetaData)
             );
         },
         false
    );

Since:
  1.22.2

See:
  {Event} iot_binding_ready
  {Event} iot_thing_discovered
  {Event} iot_bridge_status_changed
  {Event} iot_thing_registered
  {Event} iot_thing_rejected
  {Event} iot_component_reported
  {Event} iot_thing_unregistered
  {Event} iot_set_component_result_received
  {Event} iot_framework_status_changed
  {Event} iot_factory_reset_result_received
  hcap.iot.requestSetBridgeStatus()
  hcap.iot.getBridgeStatus()
  hcap.iot.requestRegisterThing()
  hcap.iot.requestRejectThing()
  hcap.iot.getThingList()
  hcap.iot.getBindingIdList()
  hcap.iot.requestSetComponent()
  hcap.iot.requestUnregisterThing()
  hcap.iot.setThingNickname()
  hcap.iot.requestSynchronizeThing()
  hcap.iot.getFrameworkStatus()
  hcap.iot.requestFactoryReset()
  hcap.iot.getVersions()

iot_thing_registered()
Event for the registration of a new thing.
Its listener will be invoked whenever a thing is registered in the bridge "scan" mode.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "iot_thing_registered",
         function (param) {
             // {String} param.thingUid : new thing UID
             console.log(
                 "Event 'iot_thing_registered' is received.\n" +
                 "thingUid = " + param.thingUid
             );
         },
         false
    );

Since:
  1.22.2

See:
  {Event} iot_binding_ready
  {Event} iot_thing_discovered
  {Event} iot_bridge_status_changed
  {Event} iot_thing_rejected
  {Event} iot_component_reported
  {Event} iot_thing_unregistered
  {Event} iot_thing_meta_data_changed
  {Event} iot_set_component_result_received
  {Event} iot_framework_status_changed
  {Event} iot_factory_reset_result_received
  hcap.iot.requestSetBridgeStatus()
  hcap.iot.getBridgeStatus()
  hcap.iot.requestRegisterThing()
  hcap.iot.requestRejectThing()
  hcap.iot.getThingList()
  hcap.iot.getBindingIdList()
  hcap.iot.requestSetComponent()
  hcap.iot.requestUnregisterThing()
  hcap.iot.setThingNickname()
  hcap.iot.requestSynchronizeThing()
  hcap.iot.getFrameworkStatus()
  hcap.iot.requestFactoryReset()
  hcap.iot.getVersions()

iot_thing_rejected()
Event for the rejection to register a discovered thing.
Its listener will be invoked whenever a discovered thing is rejected to register in the bridge "scan" mode.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "iot_thing_rejected",
         function (param) {
             // {String} param.thingUid - thing UID.
             console.log(
                 "Event 'iot_thing_rejected' is received.\n" +
                 "thingUid = " + param.thingUid
             );
         },
         false
    );

Since:
  1.22.2

See:
  {Event} iot_binding_ready
  {Event} iot_thing_discovered
  {Event} iot_bridge_status_changed
  {Event} iot_thing_registered
  {Event} iot_component_reported
  {Event} iot_thing_unregistered
  {Event} iot_thing_meta_data_changed
  {Event} iot_set_component_result_received
  {Event} iot_framework_status_changed
  {Event} iot_factory_reset_result_received
  hcap.iot.requestSetBridgeStatus()
  hcap.iot.getBridgeStatus()
  hcap.iot.requestRegisterThing()
  hcap.iot.requestRejectThing()
  hcap.iot.getThingList()
  hcap.iot.getBindingIdList()
  hcap.iot.requestSetComponent()
  hcap.iot.requestUnregisterThing()
  hcap.iot.setThingNickname()
  hcap.iot.requestSynchronizeThing()
  hcap.iot.getFrameworkStatus()
  hcap.iot.requestFactoryReset()
  hcap.iot.getVersions()

iot_thing_unregistered()
Event for the unregistration of a registered thing.
Its listener will be invoked whenever a registered thing is unregistered.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "iot_thing_unregistered",
         function (param) {
             // {String} param.thingUid : thing UID.
             console.log(
                 "Event 'iot_thing_unregistered' is received.\n" +
                 "thingUid = " + param.thingUid
             );
         },
         false
    );

Since:
  1.22.2

See:
  {Event} iot_binding_ready
  {Event} iot_thing_discovered
  {Event} iot_bridge_status_changed
  {Event} iot_thing_registered
  {Event} iot_thing_rejected
  {Event} iot_component_reported
  {Event} iot_thing_meta_data_changed
  {Event} iot_set_component_result_received
  {Event} iot_framework_status_changed
  {Event} iot_factory_reset_result_received
  hcap.iot.requestSetBridgeStatus()
  hcap.iot.getBridgeStatus()
  hcap.iot.requestRegisterThing()
  hcap.iot.requestRejectThing()
  hcap.iot.getThingList()
  hcap.iot.getBindingIdList()
  hcap.iot.requestSetComponent()
  hcap.iot.requestUnregisterThing()
  hcap.iot.setThingNickname()
  hcap.iot.requestSynchronizeThing()
  hcap.iot.getFrameworkStatus()
  hcap.iot.requestFactoryReset()
  hcap.iot.getVersions()

locale_changed()
Event for the result of locale change.
Its listener will be invoked when to succeed or fail to change the locale.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "locale_changed",
         function (param) {
             // {String} param.specifier - locale specifier for the locale change request.
             // {Boolean} param.result - true if the locale is changed successfully, else false.
             // {String} param.errorMessage - in case of failure, this message provides the details.
             console.log(
                 "Event 'locale_changed' is received.\n" +
                 "specifier = " + param.specifier + "\n" +
                 "change result = " + param.result + "\n" +
                 "Error message = " + param.errorMessage
             );
         },
         false
    );

Since:
  1.19.0

See:
  hcap.system.getLocaleList()
  hcap.system.getLocale()
  hcap.system.requestLocaleChange()

media_event_received()
Event for media player's status change.
Its listener will be invoked whenever media player's status is changed.

Media Event Type String
"play_start"
"play_end"
"error_in_playing"
"buffer_full"
"file_not_found"
"network_disconnected"
"network_busy"
"network_cannot_process"
"seek_done"
Media Event Type

Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "media_event_received",
         function (param) {
             // {String} param.eventType - changed event type
             console.log("event type = " + param.eventType);
         },
         false
    );

Since:
  1.3.1

media_hub_event_received()
Event for Media Hub status change.
Its listener will be invoked whenever Media Hub event is received.

Media Hub Event Type String
"av_in"
"av_out"
Media Hub Event Type

Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "media_hub_event_received",
         function (param) {
             // {Number} param.eventType - Media Hub event type.
             console.log("Media Hub event type = " + param.eventType);
         },
         false
    );

Since:
  1.11.0

mmr_low_battery_event_received()
Event for the MMR (Magic Motion RCU) low battery notification.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "mmr_low_battery_event_received",
         function (param) {
             console.log("MMR low battery notification is received");
         },
         false
    );

Since:
  1.19.0

mpi_data_received()
Event for receiving the MPI data.
Its listener will be invoked whenever MPI data is received.
This event is caused by hcap.mpi.sendMpiData().
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "mpi_data_received",
         function (param) {
             // {Boolean} param.result - true if MPI data is received successfully, else false.
             // {String} param.errorMessage - in case of failure, this message provides the details.
             // {Number} param.id - request ID that is defined between application and MPI headend. (0 ~ 255)
             // {Number} param.sequence - sequence number of packet. (0 ~ 255).
             // {String} param.packet - packet data that is transferred to the MPI card. (0 ~ 32)
             console.log(
                 "Event 'mpi_data_received' is received.\n" +
                 "Result = " + param.result + "\n" +
                 "Error message = " + param.errorMessage + "\n" +
                 "ID = " + param.id + "\n" +
                 "Sequence = " + param.sequence + "\n" +
                 "Packet = " + param.packet
             );
         },
         false
    );

Since:
  1.3.1

See:
  hcap.mpi.sendAndReceiveMpiData
  hcap.mpi.sendMpiData()

network_event_received()
Event for the network status change.
Its listener will be invoked whenever the network status is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "network_event_received",
         function (param) {
             // {Number} param.event - network event. (hcap.network.NetworkEventType)
             console.log(
                 "Event 'network_event_received' is received.\n" +
                 "event = " + param.event
             );
         },
         false
    );

Since:
  1.6.0

See:
  hcap.network.getNetworkInformation()

on_destroy()
Event called when TV is turned off ("turn off" means TV moves on the power STANDBY).
Pro:Centric HTML application has a chance to clean up its resource in this event listener by calling hcap.system.beginDestroy.
TV will wait for hcap.system.beginDestroy up to 1 second. And once beginDestroy is called, endDestroy should be called. Or TV will be turned off after 10 minutes automatically.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "on_destroy",
         function() {
             console.log("Event 'on_destroy' is received");
             hcap.system.beginDestroy({
                 "onSuccess" : function() {
                     console.log("beginDestroy onSuccess");

                     // clean up resources

                     hcap.system.endDestroy({
                         "onSuccess" : function() {
                             console.log("endDestroy onSuccess");
                         },
                         "onFailure" : function(e) {
                             console.log("endDestroy onFailure : errorMessage = " + e.errorMessage);
                         }
                     });
                 },
                 "onFailure" : function(f) {
                     console.log("beginDestroy onFailure : errorMessage = " + f.errorMessage);
                 }
             });
         },
         false
    );

Since:
  1.20.0

See:
  hcap.system.beginDestroy()
  hcap.system.endDestroy()

output_connection_changed()
Event notifying the status of the TV (or monitor) connected for STB output. [Support STB Only]
Its listener will be invoked whenever the TV (or monitor) is connected or disconnected.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "output_connection_changed",
         function (param) {
             // {Boolean} param.connected - true if the TV (or monitor) is connected, else false.
             console.log(
                 "Event 'output_connection_changed' is received.\n" +
                 "output connected = " + param.connected
             );
         },
         false
    );

Since:
  1.24.2

ping_result_received()
Event for the result of asynchronous ping.
Its listener will be invoked when the asynchronous ping requested by hcap.network.asyncPing() is success or fail.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "ping_result_received",
         function (param) {
             // {Boolean} param.result - true if the result of asynchronous ping is success, else false.
             // {String} param.errorMessage - in case of failure, this message provides the details.
             // {String} param.roundTripTimeInMs - round trip time to the target in milliseconds requested by hcap.network.asyncPing().
             console.log(
                 "Event 'ping_result_received' is received.\n" +
                 "Result = " + param.result + "\n" +
                 "Error message = " + param.errorMessage + "\n" +
                 "Round trip time = " + param.roundTripTimeInMs
             );
         },
         false
    );

Since:
  1.22.0

See:
  hcap.network.asyncPing()

power_mode_changed()
Event for the power mode change.
Its listener will be invoked whenever the power mode is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "power_mode_changed",
         function() {
             console.log("Event 'power_mode_changed' is received");
         },
         false
    );

Since:
  1.3.1

See:
  hcap.power.getPowerMode()
  hcap.power.setPowerMode() hcap.power.isWarmUpdate()

property_changed()
Event for the property change.
Its listener will be invoked whenever a property is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "property_changed",
         function (param) {
             // {String} param.key - property that was changed.
             console.log(
                 "Event 'property_changed' is received.\n" +
                 "Changed Property = " + param.key
             );
         },
         false
    );

Since:
  1.3.1

See:
  hcap.property.getProperty()
  hcap.property.setProperty()

rms_response_received()
Event for the RMS response.
Its listener will be invoked whenever RMS response message is received.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "rms_response_received",
         function (param) {
             // {String} param.response - RMS response message.
             console.log(
                 "Event 'rms_response_received' is received.\n" +
                 "response message = " + param.response
             );
         },
         false
    );

Since:
  1.6.0

See:
  hcap.rms.requestRms()

rs232c_data_received()
Event for receiving the RS232C data.
Its listener will be invoked only when the property "rs232c" is "1" and rs232c data is received.
Because RS232C data is serial data, received data will be separated into 1 or multibytes and delivered to HCAP application.
Therefore HCAP application has to get, assemble, interpret and analyze the received rs232c data.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "rs232c_data_received",
         function (param) {
             // {String} param.data - rs232c data string converted from binary data to ascii data such as ascii "3B1C42" for binary 0x3B1C42 with param.dataLength 3 (3 bytes) and ascii "00" for binary null data (0x00) with param.dataLength 1 (1 byte).
             // {Number} param.dataLength - received rs232c data length in bytes. Max length of EU model is 255 (bytes) and US model is 32 (bytes).
             console.log(
                 "Event 'rs232c_data_received' is received.\n" +
                 "data = " + param.data + "\n" +
                 "data length = " + param.dataLength
             );
         },
         false
    );

Since:
  1.18.4

See:
  hcap.rs232c.getConfiguration()
  hcap.rs232c.setConfiguration()
  hcap.rs232c.sendData()
  hcap.rs232c.setStartupData()
  hcap.rs232c.clearStartupData()

screensaver_event_received()
Event for the screensaver.
Its listener will be invoked whenever screensaver event is received.

Screensaver Event Type String
"turnon_screensaver"
"turnoff_screensaver"
Screensaver Event Type

Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "screensaver_event_received",
         function (param) {
             // {Number} param.eventType - screensaver event type.
             console.log("screensaver event type = " + param.eventType);
         },
         false
    );

Since:
  1.20.1

software_update_event_received()
Event for the software update notification.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "software_update_event_received",
         function (param) {
             // {String} param.eventType - software update event type ("sw_new_version_checked" / "sw_update_status_changed")
             // {Object} param.swNewVersionChecked - event data for the event type "sw_new_version_checked"
             //      {
             //          {Boolean} flagUpdate - Status of update request
             //          {Number} version - Version to be updated
             //      }
             // {Object} param.swUpdateStatusChanged - event data for the event type "sw_update_status_changed"
             //      {
             //          {String} status - "idle" / "in progress" / "completed"
             //      }
             console.log("Event 'software_update_event_received' is received.");
             if (param.eventType === "sw_new_version_checked") {
                 console.log("eventType = " + param.eventType + ", flagUpdate = " + param.swNewVersionChecked.flagUpdate + ", version = " + param.swNewVersionChecked.version);
             }
             else if (param.eventType === "sw_update_status_changed") {
                 console.log("eventType = " + param.eventType + ", status = " + param.swUpdateStatusChanged.status);
             }
         },
         false
    );

Since:
  1.24.2

See:
  hcap.system.startManualUpdate()
  hcap.system.getUpdateProgress()
  hcap.system.cancelUpdate()

speech_to_text_status_changed()
Event for the change of STT (Speech-To-Text) status.
Its listener will be invoked whenever STT status is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "speech_to_text_status_changed",
         function (param) {
             // {String} param.status - "processing" : STT is processing. "ready" : STT is completed.
             // {String} param.actionData - STT intent parameter when STT status is changed from "processing" to "ready".
             // {String} param.serviceType - STT result category when STT status is changed from "processing" to "ready".
             // {String} param.actionType - STT result intent when STT status is changed from "processing" to "ready".
             // {String} param.userUtterance - STT result text when STT status is changed from "processing" to "ready".
             console.log(
                 "Event 'speech_to_text_status_changed' is received.\n" +
                 "status = " + param.status
                 "action data = " + param.actionData
                 "service type = " + param.serviceType
                 "action type = " + param.actionType
                 "user utterance = " + param.userUtterance
             );
         },
         false
    );

Since:
  1.22.2

See:
  hcap.speech.setSpeechRecognition()
  hcap.speech.getSpeechRecognition()
  hcap.speech.decideHost()

start_channel_changed()
Event for the start channel change.
Its listener will be invoked whenever the start channel is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "start_channel_changed",
         function() {
             console.log("Event 'start_channel_changed' is received");
         },
         false
    );

Since:
  1.3.1

See:
  hcap.channel.getStartChannel()
  hcap.channel.setStartChannel()

tcp_data_received()
Event for receiving TCP data from remote.
Its listener will be invoked whenever TCP data is received.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "tcp_data_received",
         function (param) {
             // {Number} param.port - port number of TCP connection through which TCP data is received.
             // {String} param.data - received TCP data.
             console.log(
                 "Event 'tcp_data_received' is received.\n" +
                 "port = " + param.port + "\n" +
                 "data = " + param.data
             );
         },
         false
    );

Since:
  1.10.1

See:
  hcap.socket.openTcpDaemon()
  hcap.socket.closeTcpDaemon()

udp_data_received()
Event for receiving UDP data from remote.
Its listener will be invoked whenever UDP data is received.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "udp_data_received",
         function (param) {
             // {Number} param.port - port number of UDP connection through which UDP data is received.
             // {String} param.data - received UDP data.
             console.log(
                 "Event 'udp_data_received' is received.\n" +
                 "port = " + param.port + "\n" +
                 "data = " + param.data
             );
         },
         false
    );

Since:
  1.6.0

See:
  hcap.socket.openUdpDaemon()
  hcap.socket.closeUdpDaemon()

ui_value_changed()
Event for UI value change.
Its listener will be invoked whenever UI value is changed.

UI Value Event Type String
"bluetooth_sound_sync"
"audio_pts_offset"
"video_pts_offset"
"beacon_mode"
"healthcare_headphone_mode"
"vlan_id_mode"
UI Value Event Type

Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "ui_value_changed",
         function (param) {
             // {String} param.key - UI Value event string
             console.log("Event 'ui_value_changed' is received.");
             console.log("eventString = " + param.key);
         },
         false
    );

Since:
  1.20.1

See:
  hcap.bluetooth.setBluetoothSoundSync()
  hcap.system.setAudioPtsOffset()
  hcap.system.setVideoPtsOffset()
  hcap.volume.setHealthcareHeadphoneMode()
  hcap.beacon.setBeaconMode()
  hcap.network.setVlanIdMode()

usb_file_downloaded()
Event for the result of USB file download.
Its listener will be invoked when the file requested by hcap.file.downloadFileToUsb() is downloaded to the path in the USB storage successfully or is failed to download.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "usb_file_downloaded",
         function (param) {
             // {Boolean} param.result - true if the file of uri is downloaded successfully, else false.
             // {String} param.errorMessage - in case of failure, this message provides the details.
             // {String} param.uri - URI for the file to download to the usb storage requested by hcap.file.downloadFileToUsb().
             // {String} param.downloadPath - file path to download the file of uri requested by hcap.file.downloadFileToUsb().
             console.log(
                 "Event 'usb_file_downloaded' is received.\n" +
                 "Result = " + param.result + "\n" +
                 "Error message = " + param.errorMessage + "\n" +
                 "uri = " + param.uri + "\n" +
                 "Download path = " + param.downloadPath
             );
         },
         false
    );

Since:
  1.18.3

See:
  hcap.file.getUsbStorageList()
  hcap.file.getUsbStorageFileList()
  hcap.file.downloadFileToUsb()
  hcap.file.deleteUsbFile()

usb_storage_status_changed()
Event for the status change of the usb storage.
Its listener will be invoked whenever a usb storage is inserted to TV or ejected from TV.

USB Storage Event Type String
"inserted"
"ejected"
USB Storage Event Type

Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "usb_storage_status_changed",
         function (param) {
             // {String} param.eventType - usb storage event type
             console.log("event type = " + param.eventType);
         },
         false
    );

Since:
  1.18.1

volume_level_changed()
Event for the volume level change.
Its listener will be invoked whenever the volume level is changed.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "volume_level_changed",
         function yourEventListener() {
             console.log(
                 "Event 'volume_level_changed' is received"
             );
         },
         false
    );

Since:
  1.3.1

See:
  hcap.volume.getVolumeLevel()
  hcap.volume.setVolumeLevel()

webrtc_event_received()
Event for WebRTC.
Its listener will be invoked whenever the state of WebRTC is changed.

WebRTC Event Type String
"click_end_call"
"click_mic_on"
"click_mic_off"
"click_video_on"
"click_video_off"
"p2p_av_connected"
"p2p_av_disconnected"
WebRTC Event Type

Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "webrtc_event_received",
         function (param) {
             // {String} param.eventString - WebRTC event string
             console.log("Event 'webrtc_event_received' is received.");
             console.log("eventString = " + param.eventString);
         },
         false
    );

Since:
  1.24 deprecated

See:
  {Event} webrtc_message_received
  hcap.webrtc.startPreviewVideo()
  hcap.webrtc.stopPreviewVideo()
  hcap.webrtc.incomingCall()
  hcap.webrtc.outgoingCall()
  hcap.webrtc.endCall()
  hcap.webrtc.acceptMessage()
  hcap.webrtc.startCheckAudio()
  hcap.webrtc.stopCheckAudio()
  hcap.webrtc.setConfiguration()
  hcap.webrtc.getConfiguration()
  hcap.webrtc.showDiagnostics()

webrtc_message_received()
Event for received WebRTC message.
Defined in: hcap-1.24.6.5901.js.

    document.addEventListener(
         "webrtc_message_received",
         function (param) {
             // {Number} param.remotePeerId - remote peer id
             // {String} param.message - message
             console.log("Event 'webrtc_message_received' is received.");
             console.log("remotePeerId = " + param.remotePeerId + ", message = " + param.message);
         },
         false
    );

Since:
  1.24 deprecated

See:
  {Event} webrtc_event_received
  hcap.webrtc.startPreviewVideo()
  hcap.webrtc.stopPreviewVideo()
  hcap.webrtc.incomingCall()
  hcap.webrtc.outgoingCall()
  hcap.webrtc.endCall()
  hcap.webrtc.acceptMessage()
  hcap.webrtc.startCheckAudio()
  hcap.webrtc.stopCheckAudio()
  hcap.webrtc.setConfiguration()
  hcap.webrtc.getConfiguration()
  hcap.webrtc.showDiagnostics()