NSFileProviderExtension.FetchThumbnailsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
FetchThumbnailsAsync(NSString[], CGSize, NSFileProviderExtensionFetchThumbnailsHandler) |
When implemented by the developer, fetches thumbnails for the specified item identifiers, runs the specified |
FetchThumbnailsAsync(NSString[], CGSize, NSFileProviderExtensionFetchThumbnailsHandler, NSProgress) |
When implemented by the developer, asynchronously fetches thumbnails for the specified item identifiers, runs the specified |
FetchThumbnailsAsync(NSString[], CGSize, NSFileProviderExtensionFetchThumbnailsHandler)
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
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task FetchThumbnailsAsync (Foundation.NSString[] itemIdentifiers, CoreGraphics.CGSize size, UIKit.NSFileProviderExtensionFetchThumbnailsHandler perThumbnailCompletionHandler);
abstract member FetchThumbnailsAsync : Foundation.NSString[] * CoreGraphics.CGSize * UIKit.NSFileProviderExtensionFetchThumbnailsHandler -> System.Threading.Tasks.Task
override this.FetchThumbnailsAsync : Foundation.NSString[] * CoreGraphics.CGSize * UIKit.NSFileProviderExtensionFetchThumbnailsHandler -> System.Threading.Tasks.Task
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.
Returns
A task that represents the asynchronous FetchThumbnails operation
- Attributes
Remarks
(More documentation for this node is coming)
This can be used from a background thread.
The FetchThumbnailsAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.
(More documentation for this node is coming)
This can be used from a background thread.
Applies to
FetchThumbnailsAsync(NSString[], CGSize, NSFileProviderExtensionFetchThumbnailsHandler, NSProgress)
When implemented by the developer, asynchronously fetches thumbnails for the specified item identifiers, runs the specified perThumbnailCompletionHandler
for each thumbnail, and updates the progress result, returning a task that represents the operation.
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task FetchThumbnailsAsync (Foundation.NSString[] itemIdentifiers, CoreGraphics.CGSize size, UIKit.NSFileProviderExtensionFetchThumbnailsHandler perThumbnailCompletionHandler, out Foundation.NSProgress result);
abstract member FetchThumbnailsAsync : Foundation.NSString[] * CoreGraphics.CGSize * UIKit.NSFileProviderExtensionFetchThumbnailsHandler * -> System.Threading.Tasks.Task
override this.FetchThumbnailsAsync : Foundation.NSString[] * CoreGraphics.CGSize * UIKit.NSFileProviderExtensionFetchThumbnailsHandler * -> System.Threading.Tasks.Task
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.
- result
- NSProgress
Returns
- Attributes
Remarks
(More documentation for this node is coming)
This can be used from a background thread.