One Logo Pool Ball
CloudKit · IOS API REFERENCE

CKShareRequestAccessOperation

class · iOS 26.0+ · SDK 27.1

class CKShareRequestAccessOperation

Members (8)

init · iOS 26.0+

init

TypeScript
static init(): CKShareRequestAccessOperation
Swift declaration
init()
init · iOS 26.0+

init

TypeScript
static initShareURLs(shareURLs: Array<string>): CKShareRequestAccessOperation
Swift declaration
convenience init(shareURLs: [URL])
get · iOS 26.0+

shareURLs

TypeScript
get shareURLs(): (Array<string>) | null
Swift declaration
var shareURLs: [URL]? { get set }
set · iOS 26.0+

shareURLs

TypeScript
set shareURLs(value: (Array<string>) | null)
Swift declaration
var shareURLs: [URL]? { get set }
get · iOS 26.0+

shareAccessRequestResultBlock

TypeScript
get shareAccessRequestResultBlock(): (((arg0: SDKHandle) => Promise<void>)) | null
Swift declaration
var 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 · iOS 26.0+

shareAccessRequestResultBlock

TypeScript
set shareAccessRequestResultBlock(value: (((arg0: SDKHandle) => void)) | null)
Swift declaration
var 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 · iOS 26.0+

perShareAccessRequestResultBlock

TypeScript
get perShareAccessRequestResultBlock(): (((arg0: string, arg1: SDKHandle) => Promise<void>)) | null
Swift declaration
var 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 · iOS 26.0+

perShareAccessRequestResultBlock

TypeScript
set perShareAccessRequestResultBlock(value: (((arg0: string, arg1: SDKHandle) => void)) | null)
Swift declaration
var 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.

Skipped declarations

No declarations were skipped in this snapshot.

All CloudKit types →