0.7.0 • Published 6 years ago

universal-appstate v0.7.0

Weekly downloads
2
License
BSD-3-Clause
Repository
github
Last release
6 years ago

universal-appstate npm

Obtain application becoming foreground or background

Supported

Installation

npm install --save universal-appstate

Usage

import AppState from 'universal-appstate';

console.log(AppState.isAvailable);
console.log(AppState.currentState); // active|background

const _handleAppStateChange = (nextAppState) => {
  console.log(nextAppState); // active|background
}

AppState.addEventListener('change', _handleAppStateChange);
AppState.removeEventListener('change', _handleAppStateChange);

APIS

isAvailable: boolean

Whether to support.

nextAppState: 'active' | 'background'

Application becoming foreground or background.

0.7.0

6 years ago

0.6.5

7 years ago

0.6.4

7 years ago

0.6.3

7 years ago

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.4

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

8 years ago

0.4.20

8 years ago

0.4.19

8 years ago

0.4.18

8 years ago

0.4.17

8 years ago

0.4.16

8 years ago

0.4.15

8 years ago

0.5.0-beta

8 years ago

0.4.14

8 years ago

0.4.13

8 years ago

0.4.12

8 years ago