0.7.0 • Published 4 years ago
universal-appstate v0.7.0
universal-appstate
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
4 years ago
0.6.5
6 years ago
0.6.4
6 years ago
0.6.3
6 years ago
0.6.2
6 years ago
0.6.1
6 years ago
0.6.0
6 years ago
0.5.4
6 years ago
0.5.2
6 years ago
0.5.1
6 years ago
0.5.0
6 years ago
0.4.20
7 years ago
0.4.19
7 years ago
0.4.18
7 years ago
0.4.17
7 years ago
0.4.16
7 years ago
0.4.15
7 years ago
0.5.0-beta
7 years ago
0.4.14
7 years ago
0.4.13
7 years ago
0.4.12
7 years ago