Class

CKAcceptSharesOperation

An operation that accepts shared records.

Declaration

class CKAcceptSharesOperation : CKOperation

Topics

Processing the Operation Results

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

The block to execute when the operation has completed.

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

The block to execute for each share metadata that the server has processed.

var shareMetadatas: [CKShare.Metadata]?

The metadata of the shares that you want to process.

Creating an Operation

init()

Initializes and returns an operation object configured to process share metadata.

init(shareMetadatas: [CKShare.Metadata])

Initializes and returns an operation object configured to process the specified share objects.

Relationships

Inherits From

Conforms To

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software