One Logo Pool Ball
QuickLookThumbnailing · IOS API REFERENCE

QLThumbnailGenerator

class · iOS 13.0+ · SDK 27.1

class QLThumbnailGenerator

Members (7)

get · iOS 13.0+

shared

TypeScript
static get shared(): QLThumbnailGenerator
Swift declaration
class var shared: QLThumbnailGenerator { get }
method · iOS 13.0+

cancel

TypeScript
cancel(request: QLThumbnailGenerator_Request): void
Swift declaration
func cancel(_ request: QLThumbnailGenerator.Request)
method · iOS 13.0+

generateBestRepresentation

TypeScript
generateBestRepresentation(request: QLThumbnailGenerator_Request, completionHandler: ((arg0: (QLThumbnailRepresentation) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func generateBestRepresentation(for request: QLThumbnailGenerator.Request) async throws -> QLThumbnailRepresentation
method · iOS 13.0+

generateRepresentations

TypeScript
generateRepresentations(request: QLThumbnailGenerator_Request, updateHandler?: (((arg0: (QLThumbnailRepresentation) | null, arg1: QLThumbnailRepresentation_RepresentationType, arg2: (NativeError) | null) => void)) | null): void
Swift declaration
func generateRepresentations(for request: QLThumbnailGenerator.Request, update updateHandler: ((QLThumbnailRepresentation?, QLThumbnailRepresentation.RepresentationType, (any Error)?) -> Void)? = nil)
init

init

TypeScript
static init(): QLThumbnailGenerator
Swift declaration
init()
method · iOS 13.0+

saveBestRepresentation

TypeScript
saveBestRepresentationForToAsCompletion(request: QLThumbnailGenerator_Request, fileURL: string, contentType: _UniformTypeIdentifiers_UTType, completionHandler: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func saveBestRepresentation(for request: QLThumbnailGenerator.Request, to fileURL: URL, as contentType: UTType) async throws
method · iOS 14.0+ · Deprecated in iOS 18.0

saveBestRepresentation

TypeScript
saveBestRepresentationForToContentTypeCompletion(request: QLThumbnailGenerator_Request, fileURL: string, contentType: string, completionHandler: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func saveBestRepresentation(for request: QLThumbnailGenerator.Request, to fileURL: URL, contentType: String) async throws

Skipped declarations

No declarations were skipped in this snapshot.

All QuickLookThumbnailing types →