<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "DockKit",
  "identifier" : "/documentation/DockKit/DockAccessory/AccessoryEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "DockKit"
    ],
    "preciseIdentifier" : "s:7DockKit0A9AccessoryC0C5EventO"
  },
  "title" : "DockAccessory.AccessoryEvent"
}
-->

# DockAccessory.AccessoryEvent

An enumeration that represents an accessory event.

```
enum AccessoryEvent
```

## Overview

This event propagates input from the dock accessory. Example events are button presses or requests for common camera controls.

## Topics

### Enumeration Cases

[`case button(id: Int, pressed: Bool)`](/documentation/DockKit/DockAccessory/AccessoryEvent/button(id:pressed:))

A button press event on the dock accessory.

[`case cameraFlip`](/documentation/DockKit/DockAccessory/AccessoryEvent/cameraFlip)

A camera flip event that indicates a request to switch between back and front cameras.

[`case cameraShutter`](/documentation/DockKit/DockAccessory/AccessoryEvent/cameraShutter)

A camera shutter toggle event.

[`case cameraZoom(factor: Double)`](/documentation/DockKit/DockAccessory/AccessoryEvent/cameraZoom(factor:))

A camera zoom event.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)