---
title: "current(for:)"
framework: AudioAccessoryKit
role: symbol
role_heading: Type Method
platforms: [iOS 26.4+]
path: "audioaccessorykit/accessorycontroldevice/current(for:)"
---

# current(for:)

Retrieves the accessory’s current configuration.

## Declaration

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

## Parameters

- `accessory`: The accessory for which to get the current state.

## Return Value

Return Value The accessory’s current configuration.

## Discussion

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.
