<!--
{
  "availability" : [
    "iOS: 17.2.0 -",
    "iPadOS: 17.2.0 -",
    "macCatalyst: 17.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVCaptureEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureEvent"
  },
  "title" : "AVCaptureEvent"
}
-->

# AVCaptureEvent

An object that describes a user interaction with a system hardware button.

```
class AVCaptureEvent
```

## Overview

Inspect a capture event’s [`phase`](/documentation/AVKit/AVCaptureEvent/phase) to determine whether the event begins, ends, or is in a canceled state.

## Topics

### Inspecting the event

[`var phase: AVCaptureEventPhase`](/documentation/AVKit/AVCaptureEvent/phase)

The current phase of a capture event.

[`enum AVCaptureEventPhase`](/documentation/AVKit/AVCaptureEventPhase)

Constants that indicate the phase of a system capture event.

### Playing a sound

[`var shouldPlaySound: Bool`](/documentation/AVKit/AVCaptureEvent/shouldPlaySound)

A Boolean value that indicates whether you must play a sound manually.

[`func play(AVCaptureEventSound) -> Bool`](/documentation/AVKit/AVCaptureEvent/play(_:))

Plays the specified capture sound through AirPods.

## Relationships

### Conforms To

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

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

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

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)