Structure

QLThumbnailGenerator.Request.RepresentationTypes

The various types of thumbnails that you can request.

Declaration

struct RepresentationTypes

Overview

Thumbnails come in one of three different types:

icon

A file icon representation.

lowQualityThumbnail

A faster to generate version of the thumbnail that may sacrifice quality for speed.

thumbnail

A high-quality thumbnail.

To request all thumbnail representations, use all.

Topics

Creating a Thumbnail Type

init(rawValue: UInt)

Creates a new thumbnail type object for a given value.

static var all: QLThumbnailGenerator.Request.RepresentationTypes

The thumbnail type to generate all possible thumbnail representations.

static var lowQualityThumbnail: QLThumbnailGenerator.Request.RepresentationTypes

A faster to generate version of the thumbnail that may sacrifice quality for speed.

Relationships

Conforms To

See Also

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.