Class

CKDiscoverUserIdentitiesOperation

An operation that fetches user identities.

Declaration

class CKDiscoverUserIdentitiesOperation : CKOperation

Topics

Processing the Operation Results

var discoverUserIdentitiesCompletionBlock: ((Error?) -> Void)?

The block to execute when the operation has completed.

var userIdentityDiscoveredBlock: ((CKUserIdentity, CKUserIdentity.LookupInfo) -> Void)?

The block to execute for each user identity that has been discovered.

Configuring the Operation Object

var userIdentityLookupInfos: [CKUserIdentity.LookupInfo]

The lookup info (email address, phone number, or record ID) used to discover user identities.

Creating an Operation

init()

Initializes and returns an operation object configured to discover user identities.

init(userIdentityLookupInfos: [CKUserIdentity.LookupInfo])

Initializes and returns an operation object configured to discover all user identities associated with the specified lookup info.

Relationships

Inherits From

Conforms To

See Also

User Identities

class CKDiscoverAllUserIdentitiesOperation

An operation that finds all discoverable users in the device’s contacts.