---
title: "init(delegate:)"
framework: IOBluetooth
role: symbol
role_heading: Initializer
path: "iobluetooth/iobluetoothdeviceinquiry/init(delegate:)"
---

# init(delegate:)

Initializes an alloc’d inquiry object, and sets the delegate object, as if -setDelegate: were called on it.

## Declaration

```swift
init!(delegate: Any!)
```

## Parameters

- `delegate`: A delegate object that wishes to receive messages from the inquiry object. Delegate methods are listed below, under IOBluetoothDeviceInquiryDelegate.

## Return Value

Return Value A pointer to the initialized IOBluetoothDeviceInquiry object.
