CurrentLocaleMonitor

public class CurrentLocaleMonitor : BaseNotificationMonitor

A CurrentLocaleMonitor instance monitors the system for changes to the user’s locale.

  • Encapsulates changes to the user’s locale.

    See more

    Declaration

    Swift

    public enum Event
  • Initializes a new CurrentLocaleMonitor.

    Declaration

    Swift

    public init(queue: OperationQueue,
                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 user’s locale changes.

  • Declaration

    Swift

    public override func addNotificationObservers()