GlobalActivityMonitor

Global activity monitor.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val foregroundState: StateFlow<Boolean>

State flow for the foreground state.

Link copied to clipboard
open override var isAppForegrounded: Boolean

Determines if the application is in the foreground.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun addActivityListener(listener: ActivityListener)

Adds an activity listener.

Link copied to clipboard
open override fun addApplicationListener(listener: ApplicationListener)

Adds an application listener.

Link copied to clipboard

Gets the list of current resumed activities that match the filter.

Link copied to clipboard
open override fun removeActivityListener(listener: ActivityListener)

Removes an activity listener.

Link copied to clipboard
open override fun removeApplicationListener(listener: ApplicationListener)

Removes an application listener.

Link copied to clipboard

Unregisters for activity lifecycle callbacks.