ActivityMonitor

interface ActivityMonitor

Activity Monitor.

Inheritors

Properties

Link copied to clipboard
abstract val foregroundState: StateFlow<Boolean>

State flow for the foreground state.

Link copied to clipboard

Determines if the application is in the foreground.

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun addActivityListener(listener: ActivityListener)

Adds an activity listener.

Link copied to clipboard

Adds an application listener.

Link copied to clipboard

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

Link copied to clipboard

Removes an activity listener.

Link copied to clipboard

Removes an application listener.