<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAUPresetEvent/init(scope:element:dictionary:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAUPresetEvent(im)initWithScope:element:dictionary:"
  },
  "title" : "init(scope:element:dictionary:)"
}
-->

# init(scope:element:dictionary:)

Creates an event with the scope, element, and dictionary for the preset.

```
init(scope: UInt32, element: UInt32, dictionary presetDictionary: [AnyHashable : Any])
```

## Parameters

`scope`

The audio unit scope.

`element`

The element index in the scope.

`presetDictionary`

The dictionary that contains the preset.

## Discussion

The system copies the dictionary you specify and isn’t editable once it creates the event. The `scope` parameter must be <doc://com.apple.documentation/documentation/AudioToolbox/kAudioUnitScope_Global>, and the element index should be `0`.

---

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)