HTML Application SDK
A0.101
|
import"GeneralSettingsPlugin.idl";
Classes | |
interface | systemLanguageChangeEvent |
interface | tvModeChangeEvent |
Public Member Functions | |
void | addEventListener ([in] String event_name, [in] EventListener listener) |
void | disableHbbTV () |
void | enableHbbTV () |
void | enableRepeatForDirectionKeys ([in] Boolean enable) |
void | enableRepeatForProgramUpDownKeys ([in] Boolean enable) |
Boolean | getHbbTVEnabled () |
String | getRoomId () |
Integer | getTVMode () |
void | removeEventListener ([in] String event_name, [in] EventListener listener) |
void | removeEventListener ([in] String event_name) |
Boolean | setTVMode ([in] enumerations mode) |
Public Attributes | |
const Integer | TV_MODE_HOME = 0 |
const Integer | TV_MODE_HOTEL = 2 |
const Integer | TV_MODE_STORE = 1 |
This is a class which implements global General Settings.
void GeneralSettings.addEventListener | ( | [in] String | event_name, |
[in] EventListener | listener | ||
) |
Adds DOM2 event listener for specified event.
Possible values are: event_name: "systemLanguageChangeEvent", listener: function that has arguments similar to the systemLanguageChangeEvent interface properties. event_name: "tvModeChangeEvent", listener: function that has arguments similar to the tvModeChangeEvent interface properties.
event_name | Name of the event. |
listener | javascript function that has arguments like the properties listed in the listener's interface. |
void GeneralSettings.disableHbbTV | ( | ) |
HbbTV apps are disabled
void GeneralSettings.enableHbbTV | ( | ) |
HbbTV apps are enabled
void GeneralSettings.enableRepeatForDirectionKeys | ( | [in] Boolean | enable | ) |
Allows or prevent pressing direction keys repeatedly
enable | allows if enable is true, prevents otherwise. |
void GeneralSettings.enableRepeatForProgramUpDownKeys | ( | [in] Boolean | enable | ) |
Allows or prevent pressing program up down keys repeatedly
enable | allows if enable is true, prevents otherwise. |
Boolean GeneralSettings.getHbbTVEnabled | ( | ) |
Get whether HbbTV is enabled or not.
String GeneralSettings.getRoomId | ( | ) |
Integer GeneralSettings.getTVMode | ( | ) |
void GeneralSettings.removeEventListener | ( | [in] String | event_name, |
[in] EventListener | listener | ||
) |
Removes single DOM2 event listener for specified event
Possible values are: event_name: "systemLanguageChangeEvent", listener: function that has arguments similar to the systemLanguageChangeEvent interface properties. event_name: "tvModeChangeEvent", listener: function that has arguments similar to the tvModeChangeEvent interface properties.
event_name | Name of the event |
listener | named javascript function that has arguments like the properties listed in the listener's interface. |
void GeneralSettings.removeEventListener | ( | [in] String | event_name | ) |
Removes all DOM2 event listeners for specified event
event_name | Name of the event |
Boolean GeneralSettings.setTVMode | ( | [in] enumerations | mode | ) |
Set current TV mode.
mode | New TV mode. |
const Integer GeneralSettings.TV_MODE_HOME = 0 |
home mode
const Integer GeneralSettings.TV_MODE_HOTEL = 2 |
hotel mode
const Integer GeneralSettings.TV_MODE_STORE = 1 |
store mode