D0301
HTML Application SDK  A1.8
Classes | Public Member Functions | Public Attributes | List of all members
ApplicationManager Interface Reference

import"ApplicationManagerPlugin.idl";

Classes

interface  appStateChangeEvent
 

Public Member Functions

void addEventListener ([in] String event_name, [in] EventListener listener)
 
Window createWindow ([in] String name, [in] Integer event_dispatch_priority)
 
void destroyWindow ([in] Window window)
 
void enableMheg ([in] Boolean enable)
 
Window getActiveWindow ()
 
Window getCSPWindow ()
 
Window getWindowByName ([in] String name)
 
Window[] getWindows ()
 
Boolean isMhegEnabled ()
 
void isStarturlOpened ()
 
void removeEventListener ([in] String event_name, [in] EventListener listener)
 
void removeEventListener ([in] String event_name)
 
void resumeHbbTV ()
 
void resumeMheg ()
 
void suspendHbbTV ()
 
void suspendMheg ()
 

Public Attributes

const Integer TERMINATED = 1
 

Detailed Description

This is a class that implements global ApplicationManager object.

Member Function Documentation

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_nameName of the event.
listenerjavascript 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;
var windowCreated = ApplicationManager.createWindow(nameOfWindow, eventDispatchPriority);
Parameters
nameName of the window
event_dispatch_priorityThe 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;
var windowCreated = ApplicationManager.createWindow(nameForWindow, priority);
Parameters
windowWindow object.
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
enableStart Mheg engine if true; stop otherwise .
Window ApplicationManager.getActiveWindow ( )

Returns the active window.

var activeWindow = ApplicationManager.getActiveWindow();
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.

var cspWindow = ApplicationManager.getCSPWindow();
Returns
CSP Window.
Window ApplicationManager.getWindowByName ( [in] String  name)

Gets the window of the specified name

var windowName = "windowName";
var priority = 1;
var expectedWindow = ApplicationManager.createWindow(windowName, priority);
var createdWindow = ApplicationManager.getWindowByName(windowName);
Parameters
nameName of the window.
Returns
Window of the specified name; null if it does not exist.
Window [] ApplicationManager.getWindows ( )

Returns the window list.

var windows = ApplicationManager.getWindows();
Returns
The current Window list
Boolean ApplicationManager.isMhegEnabled ( )

Gets status of Mheg system.

var mhegEnabled = ApplicationManager.isMhegEnabled();
Returns
true if Mheg system is enabled; false, otherwise.
void ApplicationManager.isStarturlOpened ( )

Gets start url is opened

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_nameName of the event
listenernamed javascript function that has arguments like the properties listed in the listener's interface.
void ApplicationManager.removeEventListener ( [in] String  event_name)

Removes all DOM2 event listeners for specified event

Parameters
event_nameName of the event
See also
removeEventListener([in] String event_name, [in] EventListener listener);
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.

Member Data Documentation

const Integer ApplicationManager.TERMINATED = 1

Application terminated


The documentation for this interface was generated from the following file: