---
title: leave()
framework: avfaudio
role: symbol
role_heading: Instance Method
path: avfaudio/avaudioroutingarbiter/leave()
---

# leave()

Stops an app’s participation in audio routing arbitration.

## Declaration

```swift
func leave()
```

## Discussion

Discussion Configure your app to notify the system when the app stops using audio for an undetermined duration. For example, for a Voice over IP (VoIP) app, call this method when the VoIP call ends. Calling this method allows the system to make an informed decision when multiple Apple devices are trying to take ownership of a Bluetooth audio route.

## See Also

### Participating in AirPods Automatic Switching

- [begin(category:completionHandler:)](avfaudio/avaudioroutingarbiter/begin(category:completionhandler:).md)
- [AVAudioRoutingArbiter.Category](avfaudio/avaudioroutingarbiter/category.md)
