perShareMetadataResultBlock
The closure to execute as the operation fetches individual shares.
Declaration
var perShareMetadataResultBlock: ((URL, Result<CKShare.Metadata, any Error>) -> Void)? { get set }Discussion
The closure returns no value and takes the following parameters:
The share’s URL.
A Result that contains either:
The share metadata, or
An error that contains information about a problem encountered fetching the share metadata.
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.