Type Alias

ALAssetsGroupEnumerationResultsBlock

Signature for the block executed during enumeration of assets.

Declaration

typedef void (^ALAssetsGroupEnumerationResultsBlock)(ALAsset *result, NSUInteger index, BOOL *stop);

Discussion

The block takes the following arguments:

result

An asset that matches the filter set by the caller.

index

The index of the asset in the range being returned.

If no asset is found, index is set to NSNotFound.

stop

A pointer to a Boolean value that indicates whether the enumeration should stop. Set the referenced value to YES to stop the enumeration.

The value is set to YES if no asset is found.

If the application is not given access to the data, result is nil, index is NSNotFound, and stop points to YES.