Retrieves information about all discoverable users that are known to the current user.
- iOS 8.0–10.0Deprecated
- macOS 10.10–10.12Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–10.0Deprecated
- watchOS 3.0–3.0Deprecated
The block to execute with the results. Your block must be capable of executing on any thread of the app. This block returns no value and takes the following parameters:
An array of
CKDiscoveredobjects. Each object in the array contains information about the user, including the ID of the corresponding user record. If no users are discovered, the provided array is empty.
An error object if a problem occurs, or
nilif the IDs are retrieved successfully.
Use this method to retrieve information about other users of the app. This method returns information about those users who meet the following criteria:
There is contact information for the user in the current user’s address book.
The user has run the app.
The user has granted the
CKApplicationpermission to your app for this container.
Permission User Discoverability
This method searches for the users asynchronously and with a low priority. If you want the task to execute with a higher priority, create a
CKDiscover object and configure the desired priority.