An open API service indexing awesome lists of open source software.

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

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

```