init
TypeScriptstatic init(): CKFetchShareMetadataOperationSwift declarationinit()class · iOS 10.0+ · SDK 27.1
class CKFetchShareMetadataOperationstatic init(): CKFetchShareMetadataOperationSwift declarationinit()static initShareURLs(shareURLs: Array<string>): CKFetchShareMetadataOperationSwift declarationconvenience init(shareURLs: [URL])get fetchShareMetadataCompletionBlock(): (((arg0: (NativeError) | null) => Promise<void>)) | nullSwift declarationvar fetchShareMetadataCompletionBlock: (((any Error)?) -> Void)? { get set }set fetchShareMetadataCompletionBlock(value: (((arg0: (NativeError) | null) => void)) | null)Swift declarationvar fetchShareMetadataCompletionBlock: (((any Error)?) -> Void)? { get set }get perShareMetadataBlock(): (((arg0: string, arg1: (CKShare_Metadata) | null, arg2: (NativeError) | null) => Promise<void>)) | nullSwift declarationvar perShareMetadataBlock: ((URL, CKShare.Metadata?, (any Error)?) -> Void)? { get set }set perShareMetadataBlock(value: (((arg0: string, arg1: (CKShare_Metadata) | null, arg2: (NativeError) | null) => void)) | null)Swift declarationvar perShareMetadataBlock: ((URL, CKShare.Metadata?, (any Error)?) -> Void)? { get set }get shareURLs(): (Array<string>) | nullSwift declarationvar shareURLs: [URL]? { get set }set shareURLs(value: (Array<string>) | null)Swift declarationvar shareURLs: [URL]? { get set }get shouldFetchRootRecord(): booleanSwift declarationvar shouldFetchRootRecord: Bool { get set }set shouldFetchRootRecord(value: boolean)Swift declarationvar shouldFetchRootRecord: Bool { get set }get perShareMetadataResultBlock(): (((arg0: string, arg1: SDKHandle) => Promise<void>)) | nullSwift declarationvar perShareMetadataResultBlock: ((URL, Result<CKShare.Metadata, any Error>) -> Void)? { get set }The closure to execute as the operation fetches individual shares. The closure returns no value and takes the following parameters: - The share's URL. - A <doc://com.apple.documentation/documentation/swift/result> that contains either: - The share metadata, or - An error that contains information about a problem encountered fetching the share metadata. The operation executes this closure once for each URL in the ``CKFetchShareMetadataOperation/shareURLs`` 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 perShareMetadataResultBlock(value: (((arg0: string, arg1: SDKHandle) => void)) | null)Swift declarationvar perShareMetadataResultBlock: ((URL, Result<CKShare.Metadata, any Error>) -> Void)? { get set }The closure to execute as the operation fetches individual shares. The closure returns no value and takes the following parameters: - The share's URL. - A <doc://com.apple.documentation/documentation/swift/result> that contains either: - The share metadata, or - An error that contains information about a problem encountered fetching the share metadata. The operation executes this closure once for each URL in the ``CKFetchShareMetadataOperation/shareURLs`` 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.
get fetchShareMetadataResultBlock(): (((arg0: SDKHandle) => Promise<void>)) | nullSwift declarationvar fetchShareMetadataResultBlock: ((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 fetching the share metadatas. 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 fetchShareMetadataResultBlock(value: (((arg0: SDKHandle) => void)) | null)Swift declarationvar fetchShareMetadataResultBlock: ((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 fetching the share metadatas. 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 rootRecordDesiredKeys(): (Array<string>) | nullSwift declarationvar rootRecordDesiredKeys: [CKRecord.FieldKey]? { get set }The fields to return when fetching the root record. For a shared record hierarchy, and when ``CKFetchShareMetadataOperation/shouldFetchRootRecord`` is <doc://com.apple.documentation/documentation/swift/true>, set this property to specify which of the root record's fields the operation fetches. Use `nil` to fetch the entire record. CloudKit ignores this property for a shared record zone because, unlike a hierarchy, it doesn't have a nominated root record. The default value is `nil`.
set rootRecordDesiredKeys(value: (Array<string>) | null)Swift declarationvar rootRecordDesiredKeys: [CKRecord.FieldKey]? { get set }The fields to return when fetching the root record. For a shared record hierarchy, and when ``CKFetchShareMetadataOperation/shouldFetchRootRecord`` is <doc://com.apple.documentation/documentation/swift/true>, set this property to specify which of the root record's fields the operation fetches. Use `nil` to fetch the entire record. CloudKit ignores this property for a shared record zone because, unlike a hierarchy, it doesn't have a nominated root record. The default value is `nil`.
No declarations were skipped in this snapshot.