---
title: IOBluetoothSDPUUID
framework: IOBluetooth
role: symbol
role_heading: Class
path: iobluetooth/iobluetoothsdpuuid
---

# IOBluetoothSDPUUID

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

## Declaration

```swift
class IOBluetoothSDPUUID
```

## Overview

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

- [init(bytes:length:)](iobluetooth/iobluetoothsdpuuid/init(bytes:length:).md)
- [init(data:)](iobluetooth/iobluetoothsdpuuid/init(data:).md)
- [init(uuid16:)](iobluetooth/iobluetoothsdpuuid/init(uuid16:)-7j3zk.md)
- [init(uuid32:)](iobluetooth/iobluetoothsdpuuid/init(uuid32:)-7qjwq.md)
- [init(UUID16:)](iobluetooth/iobluetoothsdpuuid/init(uuid16:)-5dw92.md)
- [init(UUID32:)](iobluetooth/iobluetoothsdpuuid/init(uuid32:)-2ulu6.md)

### Instance Methods

- [classForArchiver()](iobluetooth/iobluetoothsdpuuid/classforarchiver().md)
- [classForCoder()](iobluetooth/iobluetoothsdpuuid/classforcoder().md)
- [classForPortCoder()](iobluetooth/iobluetoothsdpuuid/classforportcoder().md)
- [getWithLength(_:)](iobluetooth/iobluetoothsdpuuid/getwithlength(_:).md)
- [isEqual(to:)](iobluetooth/iobluetoothsdpuuid/isequal(to:).md)

### Type Methods

- [uuid16(_:)](iobluetooth/iobluetoothsdpuuid/uuid16(_:).md)
- [uuid32(_:)](iobluetooth/iobluetoothsdpuuid/uuid32(_:).md)

## Relationships

### Inherits From

- [NSData](foundation/nsdata.md)

### Conforms To

- [BidirectionalCollection](swift/bidirectionalcollection.md)
- [CVarArg](swift/cvararg.md)
- [Collection](swift/collection.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [DataProtocol](foundation/dataprotocol.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSMutableCopying](foundation/nsmutablecopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [RandomAccessCollection](swift/randomaccesscollection.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [Sequence](swift/sequence.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)
