<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "AssetsLibrary",
  "identifier" : "/documentation/AssetsLibrary/ALAssetsLibraryWriteVideoCompletionBlock",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Assets Library"
    ],
    "preciseIdentifier" : "c:@T@ALAssetsLibraryWriteVideoCompletionBlock"
  },
  "title" : "ALAssetsLibraryWriteVideoCompletionBlock"
}
-->

# ALAssetsLibraryWriteVideoCompletionBlock

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

```
typedef void (^)(NSURL *, NSError *) ALAssetsLibraryWriteVideoCompletionBlock;
```

## 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`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)