---
title: "setStorageManagementPolicy(_:for:)"
framework: AVFoundation
role: symbol
role_heading: Instance Method
platforms: [iOS 11.0+, iPadOS 11.0+, Mac Catalyst 13.1+, macOS 10.15+, visionOS 1.0+]
path: "avfoundation/avassetdownloadstoragemanager/setstoragemanagementpolicy(_:for:)"
---

# setStorageManagementPolicy(_:for:)

Sets a storage policy for the downloaded asset.

## Declaration

```swift
func setStorageManagementPolicy(_ storageManagementPolicy: AVAssetDownloadStorageManagementPolicy, for downloadStorageURL: URL)
```

## Parameters

- `storageManagementPolicy`: The policy to set for the downloaded asset.
- `downloadStorageURL`: The location of the downloaded asset.

## See Also

### Setting the storage policy

- [storageManagementPolicy(for:)](avfoundation/avassetdownloadstoragemanager/storagemanagementpolicy(for:).md)
