https://github.com/unfoldingword-dev/android-foreground
A library for determining if an application is in the foreground or background
https://github.com/unfoldingword-dev/android-foreground
Last synced: 11 months ago
JSON representation
A library for determining if an application is in the foreground or background
- Host: GitHub
- URL: https://github.com/unfoldingword-dev/android-foreground
- Owner: unfoldingWord-dev
- License: mit
- Created: 2017-02-10T22:07:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-23T18:30:54.000Z (over 9 years ago)
- Last Synced: 2025-06-26T18:43:54.828Z (about 1 year ago)
- Language: Java
- Size: 56.6 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Foreground
This library makes it easy to check if your app is in the foreground or background.
## Usage
```
// app is the Application object
Foreground.init(app);
// check state manually
Foreground.get().isForeground();
// register callbacks
Foreground.get().addListener(some listener);
```