<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/IOBluetoothDeviceInquiryDelegate/deviceInquiryComplete(_:error:aborted:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "IOBluetooth"
    ],
    "preciseIdentifier" : "c:objc(pl)IOBluetoothDeviceInquiryDelegate(im)deviceInquiryComplete:error:aborted:"
  },
  "title" : "deviceInquiryComplete(_:error:aborted:)"
}
-->

# deviceInquiryComplete(_:error:aborted:)

```
optional func deviceInquiryComplete(_ sender: IOBluetoothDeviceInquiry!, error: IOReturn, aborted: Bool)
```

## Parameters

`sender`

Inquiry object that sent this delegate message.

`error`

Error code. kIOReturnSuccess if the inquiry completed without incident.

`aborted`

TRUE if user called -stop on the inquiry.

## Discussion

When the inquiry is completely stopped, this delegate method will be invoked. It will supply an error code value, kIOReturnSuccess if the inquiry stopped without problem, otherwise a non-kIOReturnSuccess error code will be supplied.

---

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)