# Mojo.Core Application Framework

Mojo.Core is a collection of core APIs that provides a low level abstraction on top of basic webOS system interactions. For very simple apps that do not require widgets, scenes, or really anything visual, this is a small, fast alternative to including the entire Mojo framework. Dashboard apps and games are examples of apps that would be good candidates to only use Mojo.Core.

To use Mojo.Core in place of Mojo, you need to include the following code in your index.html, before any of your own scripts are included:

>     <script src="/usr/palm/frameworks/mojo-core.js" type="text/javascript"></script>

This needs to be included in every window of an app in order to ensure it will work as expected. This includes child windows.

`mojo-core.js` will create a global object called MojoCore that will contain the namespaces documented in this section. Note that no other Mojo APIs will be available, only the APIs documented in the Core section.

These APIs are also available in Mojo proper. They are generally hidden behind higher level APIs that are more convenient, but you can access the namespaces documented here by accessing Mojo.Core.

## Namespaces

Name | Description
--- | ---
AltChar | The alternate character picker is a list of characters that can't be made with the normal keyboard.
Animation | Holds the infrastructure for coordinating timers for multiple animations.
App | App-specific configuration
AppMenu | All you need to display and receive user commands from the webOS app menu.
Child | Namespace dealing with child windows.
Event | Functions to aid in interacting with the supplemental events a touch environment brings to the table.
Scroll | Handles scrolling, which is implemented in JavaScript in webOS.
Service | Access device services like the accelerometer, GPS, contacts, and more!