<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.5.0"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetoothUI",
  "identifier" : "/documentation/IOBluetoothUI/IOBluetoothServiceBrowserController/discover:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IOBluetooth UI"
    ],
    "preciseIdentifier" : "c:objc(cs)IOBluetoothServiceBrowserController(im)discover:"
  },
  "title" : "discover:"
}
-->

# discover:

Invoke an already created window controller to display, and run the modal dialog.

```
- (IOReturn) discover:(IOBluetoothSDPServiceRecord **) outRecord;
```

## Parameters

`outRecord`

Pointer to a (IOBluetoothSDPServiceRecord *) object. This will get allocated and returned to the client if the user selects a service.

## Return Value

IOReturn - * kIOReturnSuccess - on successful completion. * kCanceledErr - User canceled.

## Discussion

This method will run the IOBluetoothServiceBrowserController browser window modally.

---

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)