---
title: IOBluetoothSDPServiceAttribute
framework: IOBluetooth
role: symbol
role_heading: Class
path: iobluetooth/iobluetoothsdpserviceattribute
---

# IOBluetoothSDPServiceAttribute

IOBluetoothSDPServiceAttribute represents a single SDP service attribute.

## Declaration

```swift
class IOBluetoothSDPServiceAttribute
```

## Overview

Overview A service attribute contains two components: an attribute ID and a data element.

## Topics

### Initializers

- [init(id:attributeElement:)](iobluetooth/iobluetoothsdpserviceattribute/init(id:attributeelement:)-7oebi.md)
- [init(id:attributeElementValue:)](iobluetooth/iobluetoothsdpserviceattribute/init(id:attributeelementvalue:)-84b3r.md)
- [init(ID:attributeElement:)](iobluetooth/iobluetoothsdpserviceattribute/init(id:attributeelement:)-3g9jw.md)
- [init(ID:attributeElementValue:)](iobluetooth/iobluetoothsdpserviceattribute/init(id:attributeelementvalue:)-1o9lv.md)
- [init(coder:)](iobluetooth/iobluetoothsdpserviceattribute/init(coder:).md)

### Instance Methods

- [getDataElement()](iobluetooth/iobluetoothsdpserviceattribute/getdataelement().md)
- [getID()](iobluetooth/iobluetoothsdpserviceattribute/getid().md)
- [getIDDataElement()](iobluetooth/iobluetoothsdpserviceattribute/getiddataelement().md)

### Type Methods

- [withID(_:attributeElement:)](iobluetooth/iobluetoothsdpserviceattribute/withid(_:attributeelement:).md)
- [withID(_:attributeElementValue:)](iobluetooth/iobluetoothsdpserviceattribute/withid(_:attributeelementvalue:).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)
