Contents

QLThumbnailRequestFlushContext(_:_:)

Flush the graphics context and sets the thumbnail response.

Declaration

func QLThumbnailRequestFlushContext(_ thumbnail: QLThumbnailRequest!, _ context: CGContext!)

Parameters

  • context:

    The graphics context to flush.

Discussion

You should call this method after drawing in the graphics context created by QLThumbnailRequestCreateContext(_:_:_:_:).

Special Considerations

Thread-safety: This function should be called in the same thread as the thumbnail request is made in; generally, this is the same thread in which the GenerateThumbnailForURL callback was invoked.

See Also

Handling thumbnail requests