Instance Method


Cancels all pending image generation requests.


func cancelAllCGImageGeneration()


This method calls the handler block with AVAssetImageGenerator.Result.cancelled for each image time in every previous invocation of generateCGImagesAsynchronously(forTimes:completionHandler:) for which images have not yet been supplied.

See Also

Generating Images

func copyCGImage(at: CMTime, actualTime: UnsafeMutablePointer<CMTime>?) -> CGImage

Returns an image for the asset at or near a specified time.

typealias AVAssetImageGeneratorCompletionHandler

A block that you use to receive thumbnail images generated from an asset.

enum AVAssetImageGenerator.Result

The statuses indicating the outcome of image generation.