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
queueThe operation queue on which the handler executes. By default, the main operation queue is used.
handlerThe 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
nilif the current user has disabled or logged out of iCloud.Declaration
Swift
public var token: AnyObject? { get } -
Declaration
Swift
override public func addNotificationObservers()
View on GitHub
Install in Dash
UbiquityIdentityMonitor Class Reference