---
title: "getAllAssetPacksWithCompletionHandler:"
framework: backgroundassets
role: symbol
role_heading: Instance Method
path: "backgroundassets/baassetpackmanager/getallassetpackswithcompletionhandler:"
---

# getAllAssetPacksWithCompletionHandler:

Gets the asset packs that are available to download.

## Declaration

```occ
- (void) getAllAssetPacksWithCompletionHandler:(void (^)(NSSet<BAAssetPack *> *assetPacks, NSError *error)) completionHandler;
```

## Parameters

- `completionHandler`: A block that receives the asset packs or an error if one occurs.

## Discussion

Discussion This method may attempt to get the latest asset-pack information from the server.

## See Also

### Accessing asset packs

- [getManifestWithCompletionHandler:](backgroundassets/baassetpackmanager/getmanifestwithcompletionhandler:.md)
- [BAAssetPackManifest](backgroundassets/baassetpackmanifest.md)
- [getAssetPackWithIdentifier:completionHandler:](backgroundassets/baassetpackmanager/getassetpackwithidentifier:completionhandler:.md)
