init
TypeScriptstatic init(): CKShareRequestAccessOperationSwift declarationinit()class · iOS 26.0+ · SDK 27.1
class CKShareRequestAccessOperationstatic init(): CKShareRequestAccessOperationSwift declarationinit()static initShareURLs(shareURLs: Array<string>): CKShareRequestAccessOperationSwift declarationconvenience init(shareURLs: [URL])get shareURLs(): (Array<string>) | nullSwift declarationvar shareURLs: [URL]? { get set }set shareURLs(value: (Array<string>) | null)Swift declarationvar shareURLs: [URL]? { get set }get shareAccessRequestResultBlock(): (((arg0: SDKHandle) => Promise<void>)) | nullSwift declarationvar shareAccessRequestResultBlock: ((Result<Void, any Error>) -> Void)? { get set }The closure to execute after CloudKit processes each share access request. Use this closure to handle the overall success or failure of the operation. The closure returns no value and takes the following parameter: - A <doc://com.apple.documentation/documentation/swift/result> that contains either: - A successful `Result`, or - An error that contains information about a problem encountered processing the share access requests. The closure executes only once, and represents your final opportunity to process the operation's results. It executes after all share access request completion closures finish. The closure executes serially with respect to the other closures of the operation. Update the value of this property before you execute the operation or submit it to a queue.
set shareAccessRequestResultBlock(value: (((arg0: SDKHandle) => void)) | null)Swift declarationvar shareAccessRequestResultBlock: ((Result<Void, any Error>) -> Void)? { get set }The closure to execute after CloudKit processes each share access request. Use this closure to handle the overall success or failure of the operation. The closure returns no value and takes the following parameter: - A <doc://com.apple.documentation/documentation/swift/result> that contains either: - A successful `Result`, or - An error that contains information about a problem encountered processing the share access requests. The closure executes only once, and represents your final opportunity to process the operation's results. It executes after all share access request completion closures finish. The closure executes serially with respect to the other closures of the operation. Update the value of this property before you execute the operation or submit it to a queue.
get perShareAccessRequestResultBlock(): (((arg0: string, arg1: SDKHandle) => Promise<void>)) | nullSwift declarationvar perShareAccessRequestResultBlock: ((URL, Result<Void, any Error>) -> Void)? { get set }The closure to execute when CloudKit processes a share access request. This property is a closure that returns no value and has the following parameters: - The URL of the processed share. - A <doc://com.apple.documentation/documentation/swift/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 ``CKShareRequestAccessOperation/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.
set perShareAccessRequestResultBlock(value: (((arg0: string, arg1: SDKHandle) => void)) | null)Swift declarationvar perShareAccessRequestResultBlock: ((URL, Result<Void, any Error>) -> Void)? { get set }The closure to execute when CloudKit processes a share access request. This property is a closure that returns no value and has the following parameters: - The URL of the processed share. - A <doc://com.apple.documentation/documentation/swift/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 ``CKShareRequestAccessOperation/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.
No declarations were skipped in this snapshot.