Creates a new thumbnail for a custom file type in the current context.
- iOS 11.0+
- macOS 10.15+
- Mac Catalyst 13.0+
The desired size of the context passed to the drawing block. The size should be as close as possible to the
QLFileand has to be greater than or equal to its
This parameter indicates the preferred size of the thumbnail that you need to create. The context’s width or its height matches the
maximum, or, ideally, both.
The context size is scaled to
scaleproperty. For example, if you pass a
CGSize(10, 10)to this method, the size of the context is
(scale * 10, scale * 10).
A block that draws the thumbnail into the current CGBitmapContext context that’s accessible via
UIGraphicsor, if you’re developing for macOS,
Get Current Context()
NSGraphics. Use the context with the coordinate system of UIKit or AppKit.
trueif the thumbnail was successfully drawn into the current context. Return
An initialized reply object for a requested thumbnail.