---
title: "init(data:)"
framework: avfaudio
role: symbol
role_heading: Initializer
path: "avfaudio/avmidisysexevent/init(data:)"
---

# init(data:)

Creates a system event with the data you specify.

## Declaration

```swift
init(data: Data)
```

## Parameters

- `data`: The data that contains the contents of the system event.
