---
title: "systemRouteController(_:handle:)"
framework: avsystemrouting
role: symbol
role_heading: Instance Method
path: "avsystemrouting/avsystemroutecontrollerobserver-5syvg/systemroutecontroller(_:handle:)"
---

# systemRouteController(_:handle:)

Connects to, or disconnects from, a device when a user requests it in the picker.

## Declaration

```swift
func systemRouteController(_ controller: AVSystemRouteController, handle event: AVSystemRouteEvent) async -> Bool
```

## Parameters

- `controller`: The system routing controller.
- `event`: The routing event to handle.
