AVAssetImageGeneratorCompletionHandler
A type alias for a closure that provides the result of an image generation request.
Declaration
typealias AVAssetImageGeneratorCompletionHandler = @Sendable (CMTime, CGImage?, CMTime, AVAssetImageGenerator.Result, (any Error)?) -> VoidParameters
- requestedTime:
A time in the video timeline for which to generate an image.
- image:
A generated image for the requested time.
- actualTime:
The actual time in the video timeline at which it generated an image. The requested and actual times may differ depending on your image generator configuration including its time tolerance values.
- result:
A value that indicates the result of the image generation request.
- error:
An optional error. If an error occurs the system provides an error object that provides the details of the failure.