---
title: "withServiceDictionary(_:device:)"
framework: IOBluetooth
role: symbol
role_heading: Type Method
path: "iobluetooth/iobluetoothsdpservicerecord/withservicedictionary(_:device:)"
---

# withServiceDictionary(_:device:)

Returns an 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
class func withServiceDictionary(_ serviceDict: [AnyHashable : Any]!, device: IOBluetoothDevice!) -> Self!
```

## Return Value

Return Value Returns an IOBluetoothSDPServiceRecord * with the attributes specified in the provided dictionary.
