gh-pages / com.nextfaze.devfun.core / ForegroundTracker

ForegroundTracker

interface ForegroundTracker (source)

Application foreground state tracker.

See Also

ActivityTracker

ActivityProvider

ForegroundChangeListener

Properties

Name Summary
isAppInForeground abstract val isAppInForeground: Boolean
The foreground status of the app.

Functions

Name Summary
addForegroundChangeListener abstract fun addForegroundChangeListener(listener: ForegroundChangeListener): ForegroundChangeListener
Add a listener for when the app foreground status changes.
minusAssign open operator fun minusAssign(listener: ForegroundChangeListener): Unit
Remove a listener for when the app foreground status changes.
plusAssign open operator fun plusAssign(listener: ForegroundChangeListener): Unit
Add a listener for when the app foreground status changes.
removeForegroundChangeListener abstract fun removeForegroundChangeListener(listener: ForegroundChangeListener): ForegroundChangeListener
Remove a listener for when the app foreground status changes.