providePreview(for:completionHandler:)
Prepares the preview of a file identified within a file preview request.
Declaration
optional func providePreview(for request: QLFilePreviewRequest, completionHandler handler: @escaping @Sendable (QLPreviewReply?, (any Error)?) -> Void)optional func providePreview(for request: QLFilePreviewRequest) async throws -> QLPreviewReplyParameters
- request:
The file preview request that identifies the content to preview.
- handler:
The closure to call with a doc://com.apple.documentation/documentation/quicklook/qlpreviewreply for the system to display as the preview.