---
title: fullStateForDocument
framework: audiotoolbox
role: symbol
role_heading: Instance Property
path: audiotoolbox/auaudiounit/fullstatefordocument
---

# fullStateForDocument

A persistable snapshot of the audio unit’s properties and parameters, suitable for saving in a user’s document.

## Declaration

```swift
var fullStateForDocument: [String : Any]? { get set }
```

## Discussion

Discussion Hosts may use this property to save and restore the state of an audio unit being used. Some state, such as a parameter value, is suitable for saving in a user preset. Other state, such as a synthesizer’s primary tuning setting, could be considered global state suitable for saving in a user document. Subclasses that do not implement this property interface with the fullState property instead. This version 3 property is bridged to the version 2 kAudioUnitProperty_ClassInfoFromDocument API.

## See Also

### Managing Presets

- [fullState](audiotoolbox/auaudiounit/fullstate.md)
- [factoryPresets](audiotoolbox/auaudiounit/factorypresets.md)
- [currentPreset](audiotoolbox/auaudiounit/currentpreset.md)
- [supportsUserPresets](audiotoolbox/auaudiounit/supportsuserpresets.md)
- [userPresets](audiotoolbox/auaudiounit/userpresets.md)
- [saveUserPreset(_:)](audiotoolbox/auaudiounit/saveuserpreset(_:).md)
- [deleteUserPreset(_:)](audiotoolbox/auaudiounit/deleteuserpreset(_:).md)
- [presetState(for:)](audiotoolbox/auaudiounit/presetstate(for:).md)
