---
title: ASAccessoryEvent
framework: accessorysetupkit
role: symbol
role_heading: Class
path: accessorysetupkit/asaccessoryevent
---

# ASAccessoryEvent

Properties of an event encountered during accessory discovery.

## Declaration

```swift
class ASAccessoryEvent
```

## Mentioned in

Discovering and configuring accessories

## Overview

Overview The event handler you register with the session’s activate(on:eventHandler:) method receives objects of this type from the session. Each event identifies the type of event and which accessory (if any) is involved.

## Topics

### Inspecting the event

- [accessory](accessorysetupkit/asaccessoryevent/accessory.md)
- [ASAccessory](accessorysetupkit/asaccessory.md)
- [eventType](accessorysetupkit/asaccessoryevent/eventtype.md)
- [ASAccessoryEventType](accessorysetupkit/asaccessoryeventtype.md)

### Handling errors

- [error](accessorysetupkit/asaccessoryevent/error.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Accessory discovery

- [ASAccessoryEventType](accessorysetupkit/asaccessoryeventtype.md)
- [ASDiscoveryDescriptor](accessorysetupkit/asdiscoverydescriptor.md)
