<!--
{
  "availability" : [
    "iOS: 27.2.0 -",
    "iPadOS: 27.2.0 -",
    "macCatalyst: 27.2.0 -",
    "macOS: 27.2.0 -",
    "tvOS: 27.2.0 -",
    "visionOS: 27.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BackgroundAssets",
  "identifier" : "/documentation/BackgroundAssets/BAAssetPackManager/getLocalSizeOfAssetPackWithIdentifier:calculationMethod:completionHandler:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Background Assets"
    ],
    "preciseIdentifier" : "c:objc(cs)BAAssetPackManager(im)getLocalSizeOfAssetPackWithIdentifier:calculationMethod:completionHandler:"
  },
  "title" : "getLocalSizeOfAssetPackWithIdentifier:calculationMethod:completionHandler:"
}
-->

# getLocalSizeOfAssetPackWithIdentifier:calculationMethod:completionHandler:

Calculates a locally available asset pack’s installation size.

```
- (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 [`BAManagedErrorCodeAssetPackNotFound`](/documentation/BackgroundAssets/BAManagedErrorCode/BAManagedErrorCodeAssetPackNotFound) as its code.

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

---

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)