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

# AVCustomRoutingEvent

An object that represents an event that occurs on a route.

```
class AVCustomRoutingEvent
```

## Overview

Depending on the route’s reason, apps establish or tear down a connection to a specified route.

## Topics

### Inspecting an event

[`var route: AVCustomDeviceRoute`](/documentation/AVRouting/AVCustomRoutingEvent/route)

A route for the event.

[`class AVCustomDeviceRoute`](/documentation/AVRouting/AVCustomDeviceRoute)

An object that represents a custom device route.

[`var reason: AVCustomRoutingEventReason`](/documentation/AVRouting/AVCustomRoutingEvent/reason)

A reason for an event, such as a user request to activate or deactivate a route.

[`enum AVCustomRoutingEventReason`](/documentation/AVRouting/AVCustomRoutingEventReason)

Values that indicate the reason for a routing event.

## Relationships

### Conforms To

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

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

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

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

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

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

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

[`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)