The reference implementation of the HTML5 Navigator consists of seven JavaScript files.
These files are located in this target image directory:
/apps/Navigator.devTest_Navigator__a4514a37/native/js/
The following table gives the key responsibilities of each file:
| File | Key Responsibilities |
|---|---|
| Applications.js | Navigator.Applications provides functions that operate on apps, including start, stop, show, and hide. |
| EventDispatcher.js | Navigator.EventDispatcher provides functions for objects to register listeners for events. This class is a base class for Navigator.Applications, Navigator.Status, Navigator.Tabs, and Navigator.Voice. |
| HNM.js | Navigator.HNM registers PPS listeners for:
|
| index.js |
Defines properties for an app's WebView and layout. Registers listeners for the following events (defined in Navigator.Applications):
Registers PPS listeners for:
|
| Navigator.js | Sets up infrastructure to permit inheritance from JavaScript objects. |
| Tabs.js | Navigator.Tabs provides functions that operate on tabs, including create, remove, and highlight. |
| Voice.js | Navigator.Voice provides functions for updating the HMI based on the activity of the voice subsystem, including select, cancel, and addItem. |