---
title: "QLPreviewRequestGetGeneratorBundle(_:)"
framework: quicklook
role: symbol
role_heading: Function
path: "quicklook/qlpreviewrequestgetgeneratorbundle(_:)"
---

# QLPreviewRequestGetGeneratorBundle(_:)

Get the bundle of the generator receiving the preview request.

## Declaration

```swift
func QLPreviewRequestGetGeneratorBundle(_ preview: QLPreviewRequest!) -> Unmanaged<CFBundle>!
```

## Parameters

- `preview`: The preview request object.

## Return Value

Return Value A reference to a bundle object representing the generator’s bundle.

## Discussion

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.

## See Also

### Requesting previews

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