application/oipfApplicationManager object
The application/oipfApplicationManager embedded object enables HbbTV applications to access the Application object which manages their lifecycle, can be used to launch other applications and is also used to control visibility of the application.
Properties
| function onLowMemory() |
| The function that is called when the terminal is running low on available memory for running HbbTV applications. The exact criteria determining when an event is generated is implementation specific. |
| function onApplicationLoadError( Application appl ) |
| The function that is called when the terminal fails to load either the file containing the initial HTML document of an application or an XML AIT file (e.g. due to an HTTP 404 error, an HTTP timeout, being unable to load the file from a DSM-CC object carousel or due to the file not being either an HTML file or a XML AIT file as appropriate), All properties of the Application object referred to by appl will have the value undefined and calling any methods on that object will fail. |
Methods
| Application getOwnerApplication( Document document ) |
| Description | Get the application that the specified document is part of. If the document is not part of an application, or the calling application does not have permission to access that application, this method will return null. |
| Arguments | document | The document for which the Application object should be obtained. |
Events
For the intrinsic events listed in the table below a corresponding DOM event SHALL be generated in the following manner:
| Intrinsic event | Corresponding DOM event | DOM Event properties |
|---|
| onLowMemory | LowMemory | Bubbles: No Cancellable: No Context Info: None |
| onApplicationLoadError | ApplicationLoadError | Bubbles: No Cancellable: No Context Info: appl |
NOTE: the above DOM events are directly dispatched to the event target, and will not bubble nor capture. Applications should not rely on receiving the events listed above during the bubbling or the capturing phase. Applications that use DOM event handlers should call the addEventListener() method on the application/oipfApplicationManager object. The third parameter of addEventListener, i.e. “useCapture”, will be ignored.