Class

CKDiscoverUserInfosOperation

An object that retrieves the IDs for discoverable users whose email addresses or user record IDs you already know.

Declaration

@interface CKDiscoverUserInfosOperation : CKOperation

Overview

Users of an app must opt in to discoverability before their user records can be accessed. To opt in for a user, your app must call the requestApplicationPermission:completionHandler: method of your container object and request the CKApplicationPermissionUserDiscoverability permission. Calling that method prompts the user to grant or deny the permission.

If you assign a completion block to the completionBlock property of the operation object, the completion block is called after the operation executes and returns its results to you. You can use a completion block to perform housekeeping chores related to the operation, but do not use it to process the results of the operation itself. Any completion block you specify should be prepared to handle the failure of the operation to complete its task, whether due to an error or an explicit cancellation.

Topics

Initializing the Operation Object

- initWithEmailAddresses:userRecordIDs:

Initializes the operation object with the specified email addresses.

Configuring the Operation Object

emailAddresses

The email addresses of the users whose information you want to retrieve.

userRecordIDs

The IDs of the users whose information you want to retrieve.

Processing the Operation Results

discoverUserInfosCompletionBlock

The block to use to process the search results.

Relationships

Inherits From

See Also

Deprecated

CKDiscoverAllContactsOperation

An operation that retrieves the IDs of all discoverable users that are also in the user’s address book.

Deprecated
CKDiscoveredUserInfo

An object that contains information about a discoverable user in a database.

Deprecated