discoverAllIdentities(completionHandler:)
Fetches all user identities that match entries in the user’s Contacts.
Declaration
func discoverAllIdentities(completionHandler: @escaping @Sendable ([CKUserIdentity]?, (any Error)?) -> Void)func allUserIdentitiesFromContacts() async throws -> [CKUserIdentity]Parameters
- completionHandler:
The handler to execute with the fetch results.
Discussion
The closure doesn’t return a value and takes the following parameters:
The user identities that match entries in the user’s Contacts.
An error if a problem occurs, or
nilif the system successfully completes the request.
This method searches for the users asynchronously and with a low priority. If you want the task to execute with a higher priority, create an instance of CKDiscoverAllUserIdentitiesOperation and configure it to use the necessary priority.
See Also
Discovering User Records
discoverUserIdentity(withEmailAddress:completionHandler:)discoverUserIdentity(withPhoneNumber:completionHandler:)discoverUserIdentity(withUserRecordID:completionHandler:)fetchShareParticipant(withEmailAddress:completionHandler:)fetchShareParticipant(withPhoneNumber:completionHandler:)fetchShareParticipant(withUserRecordID:completionHandler:)fetchUserRecordID(completionHandler:)CKCurrentUserDefaultNameCKOwnerDefaultName