BaseMonitor

open class BaseMonitor : Monitor

An abstract base class that simplifies the implementation of a monitor.

  • Cleans up the monitor so that active monitoring can stop.

    If monitoring is not active when the stopMonitoring() method is invoked, this method is not called. If you override this method, you must be sure to invoke the superclass implementation.

    Declaration

    Swift

    open func cleanupMonitor()
  • Configures the monitor so that active monitoring can start.

    If monitoring is already active when the startMonitoring() method is invoked, this method is not called. If you override this method, you must be sure to invoke the superclass implementation.

    Declaration

    Swift

    open func configureMonitor()
  • Initializes a new base monitor.

    Declaration

    Swift

    public init()
  • A Boolean value indicating whether monitoring of events specific to the monitor is active.

    Declaration

    Swift

    public private(set) final var isMonitoring: Bool
  • Starts active monitoring of events specific to the monitor.

    Declaration

    Swift

    public final func startMonitoring()
  • Stops active monitoring of events specific to the monitor.

    Declaration

    Swift

    public final func stopMonitoring()