---
title: "deviceInquiryComplete(_:error:aborted:)"
framework: IOBluetooth
role: symbol
role_heading: Instance Method
path: "iobluetooth/iobluetoothdeviceinquirydelegate/deviceinquirycomplete(_:error:aborted:)"
---

# deviceInquiryComplete(_:error:aborted:)

## Declaration

```swift
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

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.
