TimeMonitor

public class TimeMonitor : BaseNotificationMonitor

A TimeMonitor instance monitors the app for significant changes in time.

  • Encapsulates significant changes in time.

    See more

    Declaration

    Swift

    public enum Event
  • Initializes a new TimeMonitor.

    Declaration

    Swift

    public init(queue: OperationQueue = .main,
                handler: @escaping (Event) -> Void)

    Parameters

    queue

    The operation queue on which the handler executes. By default, the main operation queue is used.

    handler

    The handler to call when there is a significant change in time.

  • Declaration

    Swift

    override public func addNotificationObservers()