One Logo Pool Ball
CloudKit · IOS API REFERENCE

CKAcceptSharesOperation

class · iOS 10.0+ · SDK 27.1

class CKAcceptSharesOperation

Members (12)

init · iOS 10.0+

init

TypeScript
static init(): CKAcceptSharesOperation
Swift declaration
init()
init · iOS 10.0+

init

TypeScript
static initShareMetadatas(shareMetadatas: Array<CKShare_Metadata>): CKAcceptSharesOperation
Swift declaration
convenience init(shareMetadatas: [CKShare.Metadata])
get · iOS 10.0+ · Deprecated in iOS 15.0

acceptSharesCompletionBlock

TypeScript
get acceptSharesCompletionBlock(): (((arg0: (NativeError) | null) => Promise<void>)) | null
Swift declaration
var acceptSharesCompletionBlock: (((any Error)?) -> Void)? { get set }
set · iOS 10.0+ · Deprecated in iOS 15.0

acceptSharesCompletionBlock

TypeScript
set acceptSharesCompletionBlock(value: (((arg0: (NativeError) | null) => void)) | null)
Swift declaration
var acceptSharesCompletionBlock: (((any Error)?) -> Void)? { get set }
get · iOS 10.0+ · Deprecated in iOS 15.0

perShareCompletionBlock

TypeScript
get perShareCompletionBlock(): (((arg0: CKShare_Metadata, arg1: (CKShare) | null, arg2: (NativeError) | null) => Promise<void>)) | null
Swift declaration
var perShareCompletionBlock: ((CKShare.Metadata, CKShare?, (any Error)?) -> Void)? { get set }
set · iOS 10.0+ · Deprecated in iOS 15.0

perShareCompletionBlock

TypeScript
set perShareCompletionBlock(value: (((arg0: CKShare_Metadata, arg1: (CKShare) | null, arg2: (NativeError) | null) => void)) | null)
Swift declaration
var perShareCompletionBlock: ((CKShare.Metadata, CKShare?, (any Error)?) -> Void)? { get set }
get · iOS 10.0+

shareMetadatas

TypeScript
get shareMetadatas(): (Array<CKShare_Metadata>) | null
Swift declaration
var shareMetadatas: [CKShare.Metadata]? { get set }
set · iOS 10.0+

shareMetadatas

TypeScript
set shareMetadatas(value: (Array<CKShare_Metadata>) | null)
Swift declaration
var shareMetadatas: [CKShare.Metadata]? { get set }
get · iOS 15.0+

acceptSharesResultBlock

TypeScript
get acceptSharesResultBlock(): (((arg0: SDKHandle) => Promise<void>)) | null
Swift declaration
var acceptSharesResultBlock: ((Result<Void, any Error>) -> Void)? { get set }

The closure to execute when the operation finishes. 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 shares. This closure executes only once. The closure executes serially with respect to the other closures of the operation. Set this property's value before you execute the operation or submit it to a queue.

set · iOS 15.0+

acceptSharesResultBlock

TypeScript
set acceptSharesResultBlock(value: (((arg0: SDKHandle) => void)) | null)
Swift declaration
var acceptSharesResultBlock: ((Result<Void, any Error>) -> Void)? { get set }

The closure to execute when the operation finishes. 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 shares. This closure executes only once. The closure executes serially with respect to the other closures of the operation. Set this property's value before you execute the operation or submit it to a queue.

get · iOS 15.0+

perShareResultBlock

TypeScript
get perShareResultBlock(): (((arg0: CKShare_Metadata, arg1: SDKHandle) => Promise<void>)) | null
Swift declaration
var perShareResultBlock: ((CKShare.Metadata, Result<CKShare, any Error>) -> Void)? { get set }

The block to execute as CloudKit processes individual shares. The closure returns no value and takes the following parameters: - The share metadata to process. - A <doc://com.apple.documentation/documentation/swift/result> that contains either: - The accepted share - An error that contains information about a problem encountered processing the share metadata. The operation executes this closure once for each element in the ``CKAcceptSharesOperation/shareMetadatas`` 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.

set · iOS 15.0+

perShareResultBlock

TypeScript
set perShareResultBlock(value: (((arg0: CKShare_Metadata, arg1: SDKHandle) => void)) | null)
Swift declaration
var perShareResultBlock: ((CKShare.Metadata, Result<CKShare, any Error>) -> Void)? { get set }

The block to execute as CloudKit processes individual shares. The closure returns no value and takes the following parameters: - The share metadata to process. - A <doc://com.apple.documentation/documentation/swift/result> that contains either: - The accepted share - An error that contains information about a problem encountered processing the share metadata. The operation executes this closure once for each element in the ``CKAcceptSharesOperation/shareMetadatas`` 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.

Skipped declarations

No declarations were skipped in this snapshot.

All CloudKit types →