SystemClockMonitor
public class SystemClockMonitor : BaseNotificationMonitor
A SystemClockMonitor
instance monitors the system for changes to the
clock.
-
Encapsulates changes to the system clock.
See moreDeclaration
Swift
public enum Event
-
Initializes a new
SystemClockMonitor
.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 the system clock changes.
-
Declaration
Swift
public override func addNotificationObservers()