---
title: reason
framework: avrouting
role: symbol
role_heading: Instance Property
path: avrouting/avcustomroutingevent/reason
---

# reason

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

## Declaration

```swift
var reason: AVCustomRoutingEventReason { get }
```

## See Also

### Inspecting an event

- [route](avrouting/avcustomroutingevent/route.md)
- [AVCustomDeviceRoute](avrouting/avcustomdeviceroute.md)
- [AVCustomRoutingEventReason](avrouting/avcustomroutingeventreason.md)
