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