Class

QLThumbnailGenerator

An object that generates thumbnail images based on provided requirements.

Declaration

@interface QLThumbnailGenerator : NSObject

Topics

Getting the Generator Instance

sharedGenerator

The singleton thumbnail generator instance.

Generating a Thumbnail

- generateBestRepresentationForRequest:completionHandler:

Generates the best possible thumbnail representation for a file and calls a handler upon completion.

- generateRepresentationsForRequest:updateHandler:

Generates various thumbnail representations for a file and calls the update handler for each thumbnail representation.

Saving a Thumbnail

- saveBestRepresentationForRequest:toFileAtURL:withContentType:completionHandler:

Saves the best representation of thumbnail for a specific request to the specified URL.

Canceling

- cancelRequest:

Cancels the generation of a thumbnail for a given request.

Relationships

Inherits From

See Also

Thumbnail Generation

Creating Quick Look Thumbnails to Preview Files in Your App

Generate thumbnails of images, text files, PDFs, audio files, videos, and more.

QLThumbnailGenerationRequest

A request to generate a thumbnail for a file.

QLThumbnailRepresentation

The representation of a thumbnail.