Initializer

init(imageFileURL:)

Creates a new thumbnail for a custom file type using a file at the given URL.

Declaration

convenience init(imageFileURL fileURL: URL)

Parameters

fileURL

The URL to the file that is used as the thumbnail.

Return Value

An initialized reply object for a requested thumbnail.

Discussion

The image is scaled down to fit the provided size by the QLFileThumbnailRequest if necessary.

See Also

Creating a Thumbnail

init(contextSize: CGSize, currentContextDrawing: () -> Bool)

Creates a new thumbnail for a custom file type in the current context.

init(contextSize: CGSize, drawing: (CGContext) -> Bool)

Creates a new thumbnail for a custom file type in the given context.