<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/IOBluetoothSDPServiceAttribute",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "IOBluetooth"
    ],
    "preciseIdentifier" : "c:objc(cs)IOBluetoothSDPServiceAttribute"
  },
  "title" : "IOBluetoothSDPServiceAttribute"
}
-->

# IOBluetoothSDPServiceAttribute

IOBluetoothSDPServiceAttribute represents a single SDP service attribute.

```
class IOBluetoothSDPServiceAttribute
```

## Overview

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

## Topics

### Initializers

[`-  initWithID:attributeElement:`](/documentation/IOBluetooth/IOBluetoothSDPServiceAttribute/init(id:attributeElement:)-7oebi)

Initializes a new service attribute with the given ID and data element.

[`-  initWithID:attributeElementValue:`](/documentation/IOBluetooth/IOBluetoothSDPServiceAttribute/init(id:attributeElementValue:)-84b3r)

Initializes a new service attribute with the given ID and element value.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSCoding`](/documentation/Foundation/NSCoding)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)