Upravit

Sdílet prostřednictvím


NSFileProviderExtension.FetchThumbnails Method

Definition

When implemented by the developer, fetches thumbnails for the specified item identifiers, runs the specified perThumbnailCompletionHandler for each thumbnail, and runs completionHandler when the entire operation is complete

[Foundation.Export("fetchThumbnailsForItemIdentifiers:requestedSize:perThumbnailCompletionHandler:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Foundation.NSProgress FetchThumbnails (Foundation.NSString[] itemIdentifiers, CoreGraphics.CGSize size, UIKit.NSFileProviderExtensionFetchThumbnailsHandler perThumbnailCompletionHandler, Action<Foundation.NSError> completionHandler);
abstract member FetchThumbnails : Foundation.NSString[] * CoreGraphics.CGSize * UIKit.NSFileProviderExtensionFetchThumbnailsHandler * Action<Foundation.NSError> -> Foundation.NSProgress
override this.FetchThumbnails : Foundation.NSString[] * CoreGraphics.CGSize * UIKit.NSFileProviderExtensionFetchThumbnailsHandler * Action<Foundation.NSError> -> Foundation.NSProgress

Parameters

itemIdentifiers
NSString[]

The persistent identifiers for the items.

size
CGSize

The size, in pixels, of the thumbnails.

perThumbnailCompletionHandler
NSFileProviderExtensionFetchThumbnailsHandler

A handler to run for each thumbnail.

completionHandler
Action<NSError>

A handler to run after the operation completes.

Returns

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to