Contents

QLThumbnailRequestSetThumbnailWithDataRepresentation(_:_:_:_:_:)

Sets the default image representation for an item with the provided data and specified file type.

Declaration

func QLThumbnailRequestSetThumbnailWithDataRepresentation(_ thumbnail: QLThumbnailRequest!, _ data: CFData!, _ contentTypeUTI: CFString!, _ previewProperties: CFDictionary!, _ properties: CFDictionary!)

Parameters

  • thumbnail:

    The thumbnail request object.

  • data:

    The content data.

  • contentTypeUTI:

    The UTI of the content for the preview representation.

  • previewProperties:

    Additional properties for the preview response.

  • properties:

    A dictionary of properties for the thumbnail. macOS doesn’t support any properties.

Discussion

There are currently no supported UTIs. This call only works if you set your generator to run on the main thread.

See Also

Handling thumbnail requests