One Logo Pool Ball
AVFoundation · IOS API REFERENCE

AVAssetImageGenerator.Images

struct · iOS 16.0+ · SDK 27.1

struct Images

An asynchronous sequence where each element is a Result<(requestedTime: CMTime, image: CGImage, actualTime: CMTime), Error>. When image generation is successful, the result is a tuple containing the requested time as a CMTime, the image object as a CGImage, and the time at which the image was actually generated as a CMTime. Otherwise, when image generation fails, the result contains an Error.

Members (2)

method · iOS 16.0+

makeAsyncIterator

TypeScript
makeAsyncIterator(): AVAssetImageGenerator_Images
Swift declaration
func makeAsyncIterator() -> AVAssetImageGenerator.Images

Creates the asynchronous iterator that produces elements of this asynchronous sequence. - Returns: An instance of the `AsyncIterator` type used to produce elements of the asynchronous sequence.

method · iOS 16.0+

next

TypeScript
next(): Promise<(AVAssetImageGenerator_Images_Element) | null>
Swift declaration
mutating func next() async -> AVAssetImageGenerator.Images.Element?

Asynchronously advances to the next element and returns it, or ends the sequence if there is no next element. - Returns: The next element, if it exists, or `nil` to signal the end of the sequence.

Skipped declarations

No declarations were skipped in this snapshot.

All AVFoundation types →