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

# QLPreviewRequestCopyContentUTI(_:)

Returns the UTI for the preview request.

```
func QLPreviewRequestCopyContentUTI(_ preview: QLPreviewRequest!) -> Unmanaged<CFString>!
```

## Parameters

`preview`

The preview request object.

## Return Value

The UTI of the associated preview request; returns `NULL` if the UTI is not available. You should explicitly release this object when it is no longer needed.

## Discussion

Thread-safety: This function should be called in the same thread as the preview request is made in; generally, this is the same thread in which the `GeneratePreviewForURL` callback was invoked.

---

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)