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

# ALAssetsLibraryAccessFailureBlock

Signature for the block executed if the user does not grant access to the caller to access the data managed by the framework.

```
typedef void (^)(NSError *) ALAssetsLibraryAccessFailureBlock;
```

## Discussion

The block parameter is defined as follows:

- error: An error object that describes why access to the library failed.

This block type is used by `ALAssetsLibrary/asset(for:resultBlock:failureBlock:)` and `ALAssetsLibrary/enumerateGroups(withTypes:using:failureBlock:)`.

---

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)