ServiceMonitor

interface ServiceMonitor

Interface to monitor whether a given service is enabled

Inheritors

Properties

Link copied to clipboard
abstract val isEnabled: Flow<Boolean>

A Flow representing the enabled status of the service

Link copied to clipboard

If true the service is currently enabled.

Functions

Link copied to clipboard
abstract fun startMonitoring()

When called, the ServiceMonitor will start monitoring for changes to isServiceEnabled

Link copied to clipboard
abstract fun stopMonitoring()

When called, the ServiceMonitor will stop monitoring for changes to isServiceEnabled