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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software