<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioRoutingArbiter/begin(category:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAudioRoutingArbiter(im)beginArbitrationWithCategory:completionHandler:"
  },
  "title" : "begin(category:completionHandler:)"
}
-->

# begin(category:completionHandler:)

Begins routing arbitration to take ownership of a nearby Bluetooth audio route.

```
func begin(category: AVAudioRoutingArbiter.Category, completionHandler handler: @escaping @Sendable (Bool, (any Error)?) -> Void)
```

## Parameters

`category`

A category that describes how the app uses audio.

`handler`

A completion handler the system calls asynchronously when the system completes audio routing arbitration. This closure takes the following parameters:

- defaultDeviceChanged: A Boolean value that indicates whether the system switched the AirPods to the macOS device.
- error: An error object that indicates why the request failed, or <doc://com.apple.documentation/documentation/ObjectiveC/nil-227m0> if the request succeeded.

## Discussion

Call this method to tell the operating system to arbitrate with nearby Apple devices to take ownership of a supported Bluetooth audio device. When arbitration completes, the system calls the completion handler, passing a Boolean that indicates whether the audio device changed. In either case, begin using audio as normal.

---

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)