Class

QLThumbnailGenerator.Request

A request to generate a thumbnail for a file.

Declaration

class Request : NSObject

Topics

Creating a Thumbail Request

init(fileAt: URL, size: CGSize, scale: CGFloat, representationTypes: QLThumbnailGenerator.Request.RepresentationTypes)

Creates a new request for a thumbnail with the specified parameters for a file at a provided URL.

Describing the Requested Thumbnail

var size: CGSize

The size of the thumbnails.

var scale: CGFloat

The scale of the thumbnails.

var minimumDimension: CGFloat

The minimum dimension for a thumbnail.

var iconMode: Bool

A Boolean value indicating whether the generated thumbnail request should include icon decorations.

struct QLThumbnailGenerator.Request.RepresentationTypes

The various types of thumbnails that you can 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.

class QLThumbnailGenerator

An object that generates thumbnail images based on provided requirements.

class QLThumbnailRepresentation

The representation of a thumbnail.