SystemTimeZoneMonitor
public class SystemTimeZoneMonitor : BaseNotificationMonitor
A SystemTimeZoneMonitor instance monitors the system for changes to the
currently used time zone.
-
Encapsulates changes to the system time zone.
See moreDeclaration
Swift
public enum Event -
Initializes a new
SystemTimeZoneMonitor.Declaration
Swift
public init(queue: OperationQueue = .main, handler: @escaping (Event) -> Void)Parameters
queueThe operation queue on which the handler executes. By default, the main operation queue is used.
handlerThe handler to call when the system time zone changes.
-
Declaration
Swift
override public func addNotificationObservers()
View on GitHub
Install in Dash
SystemTimeZoneMonitor Class Reference