Class

CKFetchShareMetadataOperation

An operation that fetches shared record metadata for one or more shares.

Declaration

class CKFetchShareMetadataOperation : CKOperation

Overview

This operation may be run in any container that the client has access to.

Topics

Initializing an Operation

init(shareURLs: [URL])

Initializes and returns an operation object configured to fetch the metadata for the specified shares.

Processing the Operation Results

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

The block to execute when the operation has completed.

var perShareMetadataBlock: ((URL, CKShare.Metadata?, Error?) -> Void)?

The block to execute for each share metadata that has been fetched from the server.

Configuring the Operation Object

var shareURLs: [URL]?

The URLs of the shares that you want to process.

var shouldFetchRootRecord: Bool

A flag to indicate whether the root record should be retrieved.

Relationships

Inherits From

Conforms To

See Also

Fetching

class CKFetchShareParticipantsOperation

An operation that fetches the participants of a shared record.