mag-app

3.4.1 • Public • Published

Application core

build status npm version dependencies status devDependencies status Gitter

Main module to create MAG Core application. Extends spa-app and stb-app modules. Adds MAG-specific logic (handle screen resolution, STB events, work inside iframe, etc.).

Installation

npm install mag-app

Usage

Add the instance to the scope:

var app = require('mag-app');

To change application state to ready:

app.ready();

To exit from application:

app.exit();

Get device platform name:

console.log(app.platform);

More examples and information are available in spa-app and stb-app modules.

Development mode

There is a global var DEVELOP which activates additional consistency checks and protection logic not available in release mode.

Contribution

If you have any problems or suggestions please open an issue according to the contribution rules.

License

mag-app is released under the MIT License.

Package Sidebar

Install

npm i mag-app

Weekly Downloads

3

Version

3.4.1

License

MIT

Unpacked Size

22.5 kB

Total Files

31

Last publish

Collaborators

  • magsdk