perShareMetadataBlock
The closure to execute as the operation fetches individual shares.
Declaration
var perShareMetadataBlock: ((URL, CKShare.Metadata?, (any Error)?) -> Void)? { get set }Discussion
The closure returns no value and takes the following parameters:
The share’s URL.
The share metadata, or
nilif CloudKit can’t fetch the metadata.If CloudKit can’t fetch the share metadata, this parameter provides information about the failure; otherwise, it’s
nil.
The operation executes this closure once for each URL in the shareURLs property. Each time the closure executes, it executes serially with respect to the other closures of the operation.
If you intend to use this closure to process results, set it before you execute the operation or submit the operation to a queue.