AppStateMonitor

interface AppStateMonitor

Interface for monitoring application state changes

Inheritors

Properties

Link copied to clipboard
abstract val appState: AppState

The current application state

Functions

Link copied to clipboard
abstract fun bindHandler(handler: AppStateHandler)

Bind a handler to handle app state events triggered by state changes.

Link copied to clipboard
abstract fun getBatteryLevel(): Float?

Returns the current battery level as a value between 0.0 and 1.0

Link copied to clipboard

Returns the current battery state

Link copied to clipboard
abstract fun start()

Start monitoring application state changes

Link copied to clipboard
abstract fun stop()

Stop monitoring application state changes