Contents

init(userIdentityLookupInfos:)

Creates an operation for discovering the user identities of the specified lookup infos.

Declaration

convenience init(userIdentityLookupInfos: [CKUserIdentity.LookupInfo])

Parameters

  • userIdentityLookupInfos:

    An array that contains instances of Lookupinfo Swift.class. CloudKit uses this parameter as the default value for the Useridentitylookupinfos property. If you specify nil, you must assign a value to that property before you execute the operation.

Discussion

After you create the operation, assign a handler to discoverUserIdentitiesCompletionBlock so that you can process the search results.

See Also

Creating an Operation