shareParticipants(for:)
Fetches share participants with the specified lookup infos and returns them to an awaiting caller.
Declaration
func shareParticipants(for lookupInfos: [CKUserIdentity.LookupInfo]) async throws -> [CKUserIdentity.LookupInfo : Result<CKShare.Participant, any Error>]Parameters
- lookupInfos:
The share participants’ lookup infos.
Return Value
A dictionary of fetched share participants. The dictionary uses the lookup infos you specify in lookupInfos as its keys. The value of each key is a Result that contains either the corresponding fetched share participant, or an error that describes why CloudKit can’t fetch that share participant.
Discussion
This method searches for share participants asynchronously and with a low priority. If you want the task to execute with a higher priority, create an instance of CKFetchShareParticipantsOperation and configure it to use the necessary priority.