<!--
{
  "availability" : [
    "iOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioAccessoryKit",
  "identifier" : "/documentation/AudioAccessoryKit/AccessorySensorUpdates/init(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AudioAccessoryKit"
    ],
    "preciseIdentifier" : "s:17AudioAccessoryKit0B13SensorUpdatesV3forACSS_tcfc"
  },
  "title" : "init(for:)"
}
-->

# init(for:)

Creates a sensor update sequence for the specified accessory.

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

## Parameters

`accessoryIdentifier`

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

## 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.

---

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)