UbiquityIdentityMonitor
public class UbiquityIdentityMonitor : BaseNotificationMonitor
A UbiquityIdentityMonitor
instance monitors the system for changes to the
iCloud (”ubiquity”) identity. The iCloud identity changes when the current
user logs into or out of an iCloud account, or enables or disables the
syncing of documents and data.
-
Encapsulates changes to the iCloud identity.
See moreDeclaration
Swift
public enum Event
-
Initializes a new
UbiquityIdentityMonitor
.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 iCloud identity changes.
-
An opaque token that represents the current user’s iCloud identity. The value of this token is
nil
if the current user has disabled or logged out of iCloud.Declaration
Swift
public var token: AnyObject? { get }
-
Declaration
Swift
override public func addNotificationObservers()