Generates various thumbnail representations for a file and calls the update handler for each thumbnail representation.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
The request that contains information about the thumbnail that you want to create.
The handler to call successively for each requested representation of a thumbnail. QuickLookThumbnailing calls the
updatein order of lower quality to higher quality thumbnail types. If a better quality thumbnail becomes available before a lower quality one, the framework may skip the call to the
updatefor the lower quality thumbnail. You can rely on QuickLookThumbnailing to call the
updateat least once by the time it finishes the creation of thumbnails with either the best requested thumbnail, or an error object.
The handler takes the following parameters:
A thumbnail that is successfully generated or
QLThumbnailis unable to generate a thumbnail.
The type of the generated thumbnail representation.
An error object that indicates why the thumbnail generation failed, or
nilif the thumbnail generation succeeded.
Use this method if you want to create a file icon or low-quality thumbnail quickly, and replace it with a higher quality thumbnail once it becomes available.