Instance Method

initWithAsset:

Creates an image generator for use with a specified asset.

Declaration

- (instancetype)initWithAsset:(AVAsset *)asset;

Parameters

asset

The asset from which images will be extracted.

Return Value

An image generator initialized for use with asset.

Discussion

This method may succeed even if the asset possesses no visual tracks at the time of initialization.

See Also

Creating an Image Generator

+ assetImageGeneratorWithAsset:

Returns an image generator for use with a specified asset.