<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "DeviceDiscoveryExtension",
  "identifier" : "/documentation/DeviceDiscoveryExtension/DDDiscoveryExtension/startDiscovery(session:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "DeviceDiscoveryExtension"
    ],
    "preciseIdentifier" : "s:24DeviceDiscoveryExtension011DDDiscoveryC0P05startB07sessionySo0D7SessionC_tF"
  },
  "title" : "startDiscovery(session:)"
}
-->

# startDiscovery(session:)

Begins the extension’s device discovery process.

```
func startDiscovery(session: DDDiscoverySession)
```

## Parameters

`session`

An object that reports discovery events.

## Discussion

The system controls the discovery process using this function by calling it when <doc://com.apple.documentation/documentation/AVKit/AVRoutePickerView> displays. You code your extension to search the local network or paired Bluetooth devices for a third-party device of interest that you want the system to include in the picker.

---

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)