---
title: "getLocalSizeOfAssetPackWithIdentifier:calculationMethod:completionHandler:"
framework: Background Assets
role: symbol
role_heading: Instance Method
platforms: [iOS 27.2+, iPadOS 27.2+, Mac Catalyst 27.2+, macOS 27.2+, tvOS 27.2+, visionOS 27.2+]
path: "backgroundassets/baassetpackmanager/getlocalsizeofassetpackwithidentifier:calculationmethod:completionhandler:"
---

# getLocalSizeOfAssetPackWithIdentifier:calculationMethod:completionHandler:

Calculates a locally available asset pack’s installation size.

## Declaration

```occ
- (void) getLocalSizeOfAssetPackWithIdentifier:(NSString *) assetPackIdentifier calculationMethod:(BASizeCalculationMethod) calculationMethod completionHandler:(void (^)(long long size, NSError *error)) completionHandler;
```

## Parameters

- `assetPackIdentifier`: The asset pack’s identifier.
- `calculationMethod`: The method to use to calculate the asset pack’s installation size.
- `completionHandler`: A block that receives the asset pack’s installation size in bytes or an error if one occurs. If the asset pack isn’t available locally, then the error parameter will point to an NSError object with doc://com.apple.backgroundassets/documentation/BackgroundAssets/BAManagedErrorCode/BAManagedErrorCodeAssetPackNotFound as its code.

## Discussion

Discussion This is different than the download size, which could be smaller. Calculating the size of an asset pack that contains many files can take a long time.
