Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AsyncFunc by Objective-C
typedef void (^AVAssetImageGeneratorCompletionHandler)(CMTime, CGImageRef _Nullable, CMTime, AVAssetImageGeneratorResult, NSError * _Nullable);
// ...
- (void)generateCGImagesAsynchronouslyForTimes:(NSArray<NSValue *> *)requestedTimes
completionHandler:(AVAssetImageGeneratorCompletionHandler)handler;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment