HTTPCookiesStorageMonitor

public class HTTPCookiesStorageMonitor : BaseNotificationMonitor

An HTTPCookiesStorageMonitor instance monitors an HTTP cookie storage object for changes to its acceptance policy or to its cookies.

  • Encapsulates changes to the cookie storage.

    See more

    Declaration

    Swift

    public enum Event
  • Specifies which events to monitor.

    See more

    Declaration

    Swift

    public struct Options : OptionSet
  • Initializes a new HTTPCookiesStorageMonitor.

    Declaration

    Swift

    public init(cookieStorage: HTTPCookieStorage,
                options: Options = .all,
                queue: OperationQueue = .main,
                handler: @escaping (Event) -> Void)

    Parameters

    cookieStorage

    The cookie storage to monitor.

    options

    The options that specify which events to monitor. By default, all events are monitored.

    queue

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

    handler

    The handler to call when the acceptance policy of the cookie storage or the cookies stored in the cookie storage have changed.

  • The cookie storage being monitored.

    Declaration

    Swift

    public let cookieStorage: HTTPCookieStorage
  • Declaration

    Swift

    public override func addNotificationObservers()