Type Alias

ALAssetsLibraryWriteVideoCompletionBlock

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

Declaration

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

Discussion

The block parameters are defined as follows:

assetURL

An URL that identifies the saved video file.

If the video is not saved, assetURL is nil.

error

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