import"ApplicationManagerPlugin.idl";
This is a class that implements global ApplicationManager object.
void ApplicationManager.addEventListener |
( |
[in] String |
event_name, |
|
|
[in] EventListener |
listener |
|
) |
| |
Adds DOM2 event listener for specified event.
Possible values are: event_name: "appStateChangeEvent", listener: function that has arguments similar to the appStateChangeEvent interface properties.
- Parameters
-
event_name | Name of the event. |
listener | javascript function that has arguments like the properties listed in the listener's interface. |
Window ApplicationManager.createWindow |
( |
[in] String |
name, |
|
|
[in] Integer |
event_dispatch_priority |
|
) |
| |
Creates a full-screen generic window.
var nameOfWindow = "windowName";
var eventDispatchPriority = 1;
- Parameters
-
name | Name of the window |
event_dispatch_priority | The event dispatch priority of the. It must be in the range of [0, 100]. |
- Returns
- Newly created Window
void ApplicationManager.destroyWindow |
( |
[in] Window |
window | ) |
|
Destroys a specified window and releases any reserved resources.
var nameForWindow = "windowToBeDestroyed";
var priority = 1;
- Parameters
-
void ApplicationManager.enableMheg |
( |
[in] Boolean |
enable | ) |
|
Enable/disable Mheg engine. Note that even if Mheg engine is enabled, resumeMheg should be called explicitly, if it is suspended before, to run applications.
- Parameters
-
enable | Start Mheg engine if true; stop otherwise . |
Window ApplicationManager.getActiveWindow |
( |
| ) |
|
Returns the active window.
- Returns
- The current active Window.
Window ApplicationManager.getCSPWindow |
( |
| ) |
|
Gets full-screen CSP window. Note that destoryWindow must be called at JS level once it is closed to keep track of JSPP window list properly.
- Returns
- CSP Window.
Window ApplicationManager.getWindowByName |
( |
[in] String |
name | ) |
|
Gets the window of the specified name
var windowName = "windowName";
var priority = 1;
- Parameters
-
- Returns
- Window of the specified name; null if it does not exist.
Window [] ApplicationManager.getWindows |
( |
| ) |
|
Returns the window list.
- Returns
- The current Window list
Boolean ApplicationManager.isMhegEnabled |
( |
| ) |
|
Gets status of Mheg system.
- Returns
- true if Mheg system is enabled; false, otherwise.
void ApplicationManager.isStarturlOpened |
( |
| ) |
|
void ApplicationManager.removeEventListener |
( |
[in] String |
event_name, |
|
|
[in] EventListener |
listener |
|
) |
| |
Removes single DOM2 event listener for specified event
Possible values are: event_name: "appStateChangeEvent", listener: function that has arguments similar to the appStateChangeEvent interface properties.
- Parameters
-
event_name | Name of the event |
listener | named javascript function that has arguments like the properties listed in the listener's interface. |
void ApplicationManager.removeEventListener |
( |
[in] String |
event_name | ) |
|
void ApplicationManager.resumeHbbTV |
( |
| ) |
|
Restarts the Hbb system with the latest copy of application table.
void ApplicationManager.resumeMheg |
( |
| ) |
|
Turns MHEG-5 applications on. Allows MHEG application to run and attempt to control system resources such as OSD, Audio and Video.
void ApplicationManager.suspendHbbTV |
( |
| ) |
|
Terminates the current application and avoids Hbb system to launch autostart applications.
void ApplicationManager.suspendMheg |
( |
| ) |
|
Turns MHEG-5 applications off.MHEG engine resumes automatically after channel change.
const Integer ApplicationManager.TERMINATED = 1 |
The documentation for this interface was generated from the following file:
- ApplicationManagerPlugin.idl