Contents

QLThumbnailCreate(_:_:_:_:)

Returns a thumbnail that’s generated in the background.

Declaration

func QLThumbnailCreate(_ allocator: CFAllocator!, _ url: CFURL!, _ maxThumbnailSize: CGSize, _ options: CFDictionary!) -> Unmanaged<QLThumbnail>!

Parameters

  • allocator:

    The allocator to use to create the thumbnail.

  • url:

    The URL of the document that you want to request a thumbnail for.

  • maxThumbnailSize:

    The maximum size in points for the thumbnail image.

  • options:

    Optional hints for creating a thumbnail image. Available options are Kqlthumbnailoptionscalefactorkey and Kqlthumbnailoptioniconmodekey.

Return Value

A generated thumbnail of the file at the provided url.

See Also

Creating thumbnails