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

# IOBluetoothSDPUUID

An NSData subclass that represents a UUID as defined in the Bluetooth SDP spec.

```
class IOBluetoothSDPUUID
```

## Overview

The IOBluetoothSDPUUID class can represent a UUID of any valid size (16, 32 or 128 bits). It provides the ability to compare two UUIDs no matter what their size as well as the ability to promote the size of a UUID to a larger one.

## Topics

### Initializers

[`+  uuidWithBytes:length:`](/documentation/IOBluetooth/IOBluetoothSDPUUID/init(bytes:length:))

Creates a new IOBluetoothSDPUUID object with the given bytes of the given length.

[`+  uuidWithData:`](/documentation/IOBluetooth/IOBluetoothSDPUUID/init(data:))

Creates a new IOBluetoothSDPUUID object from the given NSData.

[`-  initWithUUID16:`](/documentation/IOBluetooth/IOBluetoothSDPUUID/init(uuid16:)-7j3zk)

Initializes a new 16-bit IOBluetoothSDPUUID with the given UUID16

[`-  initWithUUID32:`](/documentation/IOBluetooth/IOBluetoothSDPUUID/init(uuid32:)-7qjwq)

Creates a new 32-bit IOBluetoothSDPUUID with the given UUID32

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

### Inherits From

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

---

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)