Contents

perShareAccessRequestResultBlock

The closure to execute when CloudKit processes a share access request.

Declaration

var perShareAccessRequestResultBlock: ((URL, Result<Void, any Error>) -> Void)? { get set }

Discussion

This property is a closure that returns no value and has the following parameters:

  • The URL of the processed share.

  • A Result that contains either

    • A successful Result

    • An error that provides information about a failure processing the share access request.

The closure executes once for each URL in the shareURLs property. Each time the closure executes, it executes serially with respect to the other closure 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.