Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 633 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 633 Bytes

TiApplicationState

Adds support for the ApplicationState property to get the UIApplicationState.

Usage

  • 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');

Properties

State

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);