Type Alias

ALAssetsLibraryWriteImageCompletionBlock

Signature for the block executed when writeImage(toSavedPhotosAlbum:orientation:completionBlock:) completes.

Declaration

typealias ALAssetsLibraryWriteImageCompletionBlock = (URL?, Error?) -> Void

Discussion

The block parameters are defined as follows:

assetURL

An URL that identifies the saved image file.

If the image is not saved, assetURL is nil.

error

If the image is not saved, an error object that describes the reason for failure, otherwise nil.