---
title: volumeTotalCapacityKey
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/urlresourcekey/volumetotalcapacitykey
---

# volumeTotalCapacityKey

Key for the volume’s total capacity in bytes (read-only).

## Declaration

```swift
static let volumeTotalCapacityKey: URLResourceKey
```

## Discussion

Discussion important: This API has the potential of being misused to access device signals to try to identify the device or user, also known as fingerprinting. Regardless of whether a user gives your app permission to track, fingerprinting is not allowed. When you use this API in your app or third-party SDK (an SDK not provided by Apple), declare your usage and the reason for using the API in your app or third-party SDK’s PrivacyInfo.xcprivacy file. For more information, including the list of valid reasons for using the API, see Describing use of required reason API.

## See Also

### Volume capacity keys

- [Checking Volume Storage Capacity](foundation/checking-volume-storage-capacity.md)
- [volumeAvailableCapacityKey](foundation/urlresourcekey/volumeavailablecapacitykey.md)
- [volumeAvailableCapacityForImportantUsageKey](foundation/urlresourcekey/volumeavailablecapacityforimportantusagekey.md)
- [volumeAvailableCapacityForOpportunisticUsageKey](foundation/urlresourcekey/volumeavailablecapacityforopportunisticusagekey.md)
