init
TypeScriptstatic init(): CKAcceptSharesOperationSwift declarationinit()class · iOS 10.0+ · SDK 27.1
class CKAcceptSharesOperationstatic init(): CKAcceptSharesOperationSwift declarationinit()static initShareMetadatas(shareMetadatas: Array<CKShare_Metadata>): CKAcceptSharesOperationSwift declarationconvenience init(shareMetadatas: [CKShare.Metadata])get acceptSharesCompletionBlock(): (((arg0: (NativeError) | null) => Promise<void>)) | nullSwift declarationvar acceptSharesCompletionBlock: (((any Error)?) -> Void)? { get set }set acceptSharesCompletionBlock(value: (((arg0: (NativeError) | null) => void)) | null)Swift declarationvar acceptSharesCompletionBlock: (((any Error)?) -> Void)? { get set }get perShareCompletionBlock(): (((arg0: CKShare_Metadata, arg1: (CKShare) | null, arg2: (NativeError) | null) => Promise<void>)) | nullSwift declarationvar perShareCompletionBlock: ((CKShare.Metadata, CKShare?, (any Error)?) -> Void)? { get set }set perShareCompletionBlock(value: (((arg0: CKShare_Metadata, arg1: (CKShare) | null, arg2: (NativeError) | null) => void)) | null)Swift declarationvar perShareCompletionBlock: ((CKShare.Metadata, CKShare?, (any Error)?) -> Void)? { get set }get shareMetadatas(): (Array<CKShare_Metadata>) | nullSwift declarationvar shareMetadatas: [CKShare.Metadata]? { get set }set shareMetadatas(value: (Array<CKShare_Metadata>) | null)Swift declarationvar shareMetadatas: [CKShare.Metadata]? { get set }get acceptSharesResultBlock(): (((arg0: SDKHandle) => Promise<void>)) | nullSwift declarationvar 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 acceptSharesResultBlock(value: (((arg0: SDKHandle) => void)) | null)Swift declarationvar 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 perShareResultBlock(): (((arg0: CKShare_Metadata, arg1: SDKHandle) => Promise<void>)) | nullSwift declarationvar 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 perShareResultBlock(value: (((arg0: CKShare_Metadata, arg1: SDKHandle) => void)) | null)Swift declarationvar 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.
No declarations were skipped in this snapshot.