ALAssetsGroupEnumerationResultsBlock
Signature for the block executed during enumeration of assets.
Declaration
typealias ALAssetsGroupEnumerationResultsBlock = (ALAsset?, Int, UnsafeMutablePointer<ObjCBool>?) -> VoidDiscussion
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 true to stop the enumeration.
The value is set to true 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 true.