Saves the best representation of thumbnail for a specific request to the specified URL.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
The request that you used to generate a thumbnail.
The destination to which you save the generated thumbnail.
The handler to call when saving the thumbnail to disk.
An error object that indicates why saving a thumbnail image failed, or
nilif saving the thumbnail succeeded.
Creating high-quality thumbnails often involves compressing a CGImage as a
JPEG file in-process. This task requires more resources than are available in resource-constrained environments such as File Provider Extensions.
Use this method to create and save the thumbnail image outside of your process as it doesn’t impose the same constraints on memory usage.