<!--
{
  "availability" : [
    "iOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AudioAccessoryKit",
  "identifier" : "/documentation/AudioAccessoryKit/AccessoryControlDevice/current(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "AudioAccessoryKit"
    ],
    "preciseIdentifier" : "s:17AudioAccessoryKit0B13ControlDeviceC7current3forACSo11ASAccessoryC_tKFZ"
  },
  "title" : "current(for:)"
}
-->

# current(for:)

Retrieves the accessory’s current configuration.

```
static func current(for accessory: ASAccessory) throws -> AccessoryControlDevice
```

## Parameters

`accessory`

The accessory for which to get the current state.

## Return Value

The accessory’s current configuration.

## Discussion> Important: Call this method only from your app extension.

This method throws an error if the accessory isn’t registered, or if communication fails.

---

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)