A block that you use to receive thumbnail images generated from an asset.
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
Pass a block of this type to
generate, and use that block to receive the generated images. The
generate method executes this handler once for each time value you specified.
The block takes five arguments:
The time for which you requested an image.
The image that was generated, or
NULLif the image could not be generated.
This parameter follows The Get Rule.
The time at which the image was actually generated.
A result code indicating whether the image generation process succeeded, failed, or was cancelled.
AVAsset, an error object that describes the problem.
Image Generator Failed