---
title: "QLPreviewRequestCopyURL(_:)"
framework: quicklook
role: symbol
role_heading: Function
path: "quicklook/qlpreviewrequestcopyurl(_:)"
---

# QLPreviewRequestCopyURL(_:)

Returns the URL of the document for which a preview is requested.

## Declaration

```swift
func QLPreviewRequestCopyURL(_ preview: QLPreviewRequest!) -> Unmanaged<CFURL>!
```

## Parameters

- `preview`: The preview request object.

## Return Value

Return Value The URL identifying the file for which the preview is requested.

## Discussion

Discussion This function is thread safe.

## See Also

### Requesting previews

- [QLPreviewRequestCopyContentUTI(_:)](quicklook/qlpreviewrequestcopycontentuti(_:).md)
- [QLPreviewRequestCopyOptions(_:)](quicklook/qlpreviewrequestcopyoptions(_:).md)
- [QLPreviewRequestCreateContext(_:_:_:_:)](quicklook/qlpreviewrequestcreatecontext(_:_:_:_:).md)
- [QLPreviewRequestCreatePDFContext(_:_:_:_:)](quicklook/qlpreviewrequestcreatepdfcontext(_:_:_:_:).md)
- [QLPreviewRequestFlushContext(_:_:)](quicklook/qlpreviewrequestflushcontext(_:_:).md)
- [QLPreviewRequestGetDocumentObject(_:)](quicklook/qlpreviewrequestgetdocumentobject(_:).md)
- [QLPreviewRequestSetDocumentObject(_:_:_:)](quicklook/qlpreviewrequestsetdocumentobject(_:_:_:).md)
- [QLPreviewRequestGetGeneratorBundle(_:)](quicklook/qlpreviewrequestgetgeneratorbundle(_:).md)
- [QLPreviewRequestGetTypeID()](quicklook/qlpreviewrequestgettypeid().md)
- [QLPreviewRequestIsCancelled(_:)](quicklook/qlpreviewrequestiscancelled(_:).md)
- [QLPreviewRequestSetDataRepresentation(_:_:_:_:)](quicklook/qlpreviewrequestsetdatarepresentation(_:_:_:_:).md)
- [QLPreviewRequestSetURLRepresentation(_:_:_:_:)](quicklook/qlpreviewrequestseturlrepresentation(_:_:_:_:).md)
