---
title: IOBluetoothSDPServiceRecord
framework: IOBluetooth
role: symbol
role_heading: Class
path: iobluetooth/iobluetoothsdpservicerecord
---

# IOBluetoothSDPServiceRecord

An instance of this class represents a single SDP service record.

## Declaration

```swift
class IOBluetoothSDPServiceRecord
```

## Overview

Overview As a service record, an instance of this class has an NSDictionary of service attributes. It also has a link to the IOBluetoothDevice that the service belongs to. The service dictionary is keyed off of the attribute ID of each attribute represented as an NSNumber.

## Topics

### Initializers

- [init(serviceDictionary:device:)](iobluetooth/iobluetoothsdpservicerecord/init(servicedictionary:device:).md)
- [init(coder:)](iobluetooth/iobluetoothsdpservicerecord/init(coder:).md)

### Instance Properties

- [attributes](iobluetooth/iobluetoothsdpservicerecord/attributes.md)
- [device](iobluetooth/iobluetoothsdpservicerecord/device.md)
- [sortedAttributes](iobluetooth/iobluetoothsdpservicerecord/sortedattributes-swift.property.md)

### Instance Methods

- [getAttributeDataElement(_:)](iobluetooth/iobluetoothsdpservicerecord/getattributedataelement(_:).md)
- [getHandle(_:)](iobluetooth/iobluetoothsdpservicerecord/gethandle(_:).md)
- [getL2CAPPSM(_:)](iobluetooth/iobluetoothsdpservicerecord/getl2cappsm(_:).md)
- [getRFCOMMChannelID(_:)](iobluetooth/iobluetoothsdpservicerecord/getrfcommchannelid(_:).md)
- [getRef()](iobluetooth/iobluetoothsdpservicerecord/getref().md)
- [getServiceName()](iobluetooth/iobluetoothsdpservicerecord/getservicename().md)
- [handsFreeSupportedFeatures()](iobluetooth/iobluetoothsdpservicerecord/handsfreesupportedfeatures().md)
- [hasService(from:)](iobluetooth/iobluetoothsdpservicerecord/hasservice(from:).md)
- [matchesSearch(_:)](iobluetooth/iobluetoothsdpservicerecord/matchessearch(_:).md)
- [matchesUUID16(_:)](iobluetooth/iobluetoothsdpservicerecord/matchesuuid16(_:).md)
- [matchesUUIDArray(_:)](iobluetooth/iobluetoothsdpservicerecord/matchesuuidarray(_:).md)
- [remove()](iobluetooth/iobluetoothsdpservicerecord/remove().md)

### Type Methods

- [publishedServiceRecord(with:)](iobluetooth/iobluetoothsdpservicerecord/publishedservicerecord(with:).md)
- [withSDPServiceRecordRef(_:)](iobluetooth/iobluetoothsdpservicerecord/withsdpservicerecordref(_:).md)
- [withServiceDictionary(_:device:)](iobluetooth/iobluetoothsdpservicerecord/withservicedictionary(_:device:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Classes

- [IOBluetoothDevice](iobluetooth/iobluetoothdevice.md)
- [IOBluetoothDeviceInquiry](iobluetooth/iobluetoothdeviceinquiry.md)
- [IOBluetoothDevicePair](iobluetooth/iobluetoothdevicepair.md)
- [IOBluetoothDeviceRef](iobluetooth/iobluetoothdeviceref.md)
- [IOBluetoothHandsFree](iobluetooth/iobluetoothhandsfree.md)
- [IOBluetoothHandsFreeAudioGateway](iobluetooth/iobluetoothhandsfreeaudiogateway.md)
- [IOBluetoothHandsFreeDevice](iobluetooth/iobluetoothhandsfreedevice.md)
- [IOBluetoothHostController](iobluetooth/iobluetoothhostcontroller.md)
- [IOBluetoothL2CAPChannel](iobluetooth/iobluetoothl2capchannel.md)
- [IOBluetoothL2CAPChannelRef](iobluetooth/iobluetoothl2capchannelref.md)
- [IOBluetoothOBEXSession](iobluetooth/iobluetoothobexsession.md)
- [IOBluetoothObject](iobluetooth/iobluetoothobject.md)
- [IOBluetoothObjectRef](iobluetooth/iobluetoothobjectref.md)
- [IOBluetoothRFCOMMChannel](iobluetooth/iobluetoothrfcommchannel.md)
- [IOBluetoothRFCOMMChannelRef](iobluetooth/iobluetoothrfcommchannelref.md)
