DefaultServiceMonitor

abstract class DefaultServiceMonitor(logger: Logger = RestrictedLogger(RestrictedLogLevel.None)) : ServiceMonitor

Default implementation of ServiceMonitor.

Parameters

logger

The Logger to log and changes to.

Constructors

Link copied to clipboard
constructor(logger: Logger = RestrictedLogger(RestrictedLogLevel.None))

Properties

Link copied to clipboard
open override 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
override fun startMonitoring()

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

Link copied to clipboard
override fun stopMonitoring()

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