---
title: "init(for:)"
framework: AudioAccessoryKit
role: symbol
role_heading: Initializer
platforms: [iOS 27.0+]
path: "audioaccessorykit/accessorysensorupdates/init(for:)"
---

# init(for:)

Creates a sensor update sequence for the specified accessory.

## Declaration

```swift
init(for accessoryIdentifier: String)
```

## Parameters

- `accessoryIdentifier`: The UID identifying the accessory, obtained from the AudioUnit initialization parameters passed to the Audio Rendering Extension.

## Discussion

Discussion Multiple iterators created from the same value — or from copies of it — all receive every packet over a single shared XPC connection. No XPC resources are acquired until the first iteration begins.
