---
title: "init(keySystem:storageDirectoryAtURL:)"
framework: avfoundation
role: symbol
role_heading: Initializer
path: "avfoundation/avcontentkeysession/init(keysystem:storagedirectoryaturl:)"
---

# init(keySystem:storageDirectoryAtURL:)

## Declaration

```swift
convenience init(keySystem: AVContentKeySystem, storageDirectoryAtURL storageURL: URL)
```
