Type Alias

ALAssetsLibraryAssetForURLResultBlock

Signature for the block executed if the user has granted access to the caller to access the data managed by the framework in asset(for:resultBlock:failureBlock:).

Declaration

typealias ALAssetsLibraryAssetForURLResultBlock = (ALAsset?) -> Void

Discussion

The block parameter is defined as follows:

asset

The asset identified by the URL parameter in asset(for:resultBlock:failureBlock:).

If the asset is not found, asset is nil.