---
title: "init(serviceDictionary:device:)"
framework: IOBluetooth
role: symbol
role_heading: Initializer
path: "iobluetooth/iobluetoothsdpservicerecord/init(servicedictionary:device:)"
---

# init(serviceDictionary:device:)

Returns an initialized IOBluetoothSDPServiceRecord * with the attributes specified in the provided service dictionary. Provide a pointer to an IOBlueotothDevice if you wish to associate the record to a specific IOBluetoothDevice.

## Declaration

```swift
init!(serviceDictionary serviceDict: [AnyHashable : Any]!, device: IOBluetoothDevice!)
```
