Adds support for the ApplicationState property to get the UIApplicationState.
- Download the latest version from the dist folder
- Install the module into the modules/iphone folder of your project
- You can now use the module via require
var TiApplicationState = require('com.sensimity.tiapplicationstate');
The state property is a string containing one of 3 possible values: 'background', 'active', 'inactive'.
var TiApplicationState = require('com.sensimity.tiapplicationstate');
Ti.API.info("TiApplicationState is " + TiApplicationState.state);