<!--
{
  "availability" : [
    "macOS: 10.6.0 - 12.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "QuickLook",
  "identifier" : "/documentation/QuickLook/QLThumbnailRequestSetThumbnailWithDataRepresentation(_:_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Quick Look"
    ],
    "preciseIdentifier" : "c:@F@QLThumbnailRequestSetThumbnailWithDataRepresentation"
  },
  "title" : "QLThumbnailRequestSetThumbnailWithDataRepresentation(_:_:_:_:_:)"
}
-->

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

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

```
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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)