Platforms to show: All Mac Windows Linux Cross-Platform
CKDiscoverAllContactsOperationMBS class Deprecated
Super class: CKOperationMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | CloudKit | MBS Mac64bit Plugin | 16.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The search of the user’s address book does not return any personal data about the user’s contacts. The search returns only the IDs of the corresponding user records, which contain only data that your app puts there. CloudKit uses the address book information to identify users of the app that the current user knows. Because the system accesses the address book instead of your app, the system does not display a prompt to the user when that access occurs.
Users of an app must opt in to discoverability before their user records can be accessed. To opt in for a user, your app must call the requestApplicationPermission:completion: method of your container object and request the userDiscoverability permission. Calling that method prompts the user to grant or deny the permission.
If you assign a completion block to the completionBlock property of the operation object, the completion block is called after the operation executes and returns its results to you. You can use a completion block to perform housekeeping chores related to the operation, but do not use it to process the results of the operation itself. Any completion block you specify should be prepared to handle the failure of the operation to complete its task, whether due to an error or an explicit cancellation.
No Address Book access dialog will be displayed.
Available in OS X 10.10 and newer. Deprecated in 10.12 in favor of CKDiscoverAllUserIdentitiesOperationMBS classes.
Subclass of the CKOperationMBS class.
- event discoverAllContactsCompleted(userInfos() as CKDiscoveredUserInfoMBS, operationError as NSErrorMBS)
- 2 methods
- method Constructor
- method Destructor
Super class CKOperationMBS
- 2 events
- event Completed
- event LongLivedOperationWasPersisted
- 8 properties
- property configuration as CKOperationConfigurationMBS
- property Handle as Integer
- property operationID as String
- 7 methods
- method cancel
- method Constructor
- method Destructor
- method isCancelled as boolean
- method isExecuting as boolean
- method isFinished as boolean
- method start
This class has no sub classes.
Blog Entries
Release notes
- Version 20.3
- Deprecated CKDiscoverUserInfosOperationMBS, CKDiscoverAllContactsOperationMBS and CKDiscoveredUserInfoMBS classes.
The items on this page are in the following plugins: MBS Mac64bit Plugin.
CKDatabaseSubscriptionMBS - CKDiscoverAllUserIdentitiesOperationMBS