Contents

fetchParticipantsMatchingLookupInfos:intoPersistentStore:completion:

Fetches all participants that match the specified critieria.

Declaration

- (void) fetchParticipantsMatchingLookupInfos:(NSArray<CKUserIdentityLookupInfo *> *) lookupInfos intoPersistentStore:(NSPersistentStore *) persistentStore completion:(void (^)(NSArray<CKShareParticipant *> *fetchedParticipants, NSError *fetchError)) completion;

Parameters

  • lookupInfos:

    An array of criteria that CloudKit uses to find participants. For more information, see Lookupinfo Swift.class.

  • persistentStore:

    The persistent store that provides the CloudKit container’s identifier. For more information, see Nspersistentcloudkitcontaineroptions.

  • completion:

    The handler to invoke after the method fetches participants.

Discussion

The completion handler returns no value and takes the following parameters:

  • An array of fetched participants. For more information, see CKShare.Participant.

  • An error object that contains information about a problem, or nil if the method successfully fetches participants.

See Also

Sharing Objects