UbiquitousKeyValueStoreMonitor

public class UbiquitousKeyValueStoreMonitor : BaseNotificationMonitor

A UbiquitousKeyValueStoreMonitor instance monitors the iCloud (“ubiquitous”) key-value store for changes due to incoming data pushed from iCloud.

  • Encapsulates changes to the iCloud key-value store.

    See more

    Declaration

    Swift

    public enum Event
  • Specifies which events to monitor.

    See more

    Declaration

    Swift

    public struct Options : OptionSet
  • Initializes a new UbiquitousKeyValueStoreMonitor.

    Declaration

    Swift

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

    Parameters

    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 iCloud key-value store changes.

  • Declaration

    Swift

    override public func addNotificationObservers()