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

# init(data:)

Creates a new IOBluetoothSDPUUID object from the given NSData.

```
convenience init!(data: Data!)
```

## Parameters

`data`

The NSData containing the UUID bytes.

## Return Value

Returns the new IOBluetoothSDPUUID object or nil on failure.

## Discussion

If the length of the NSData is invalid for a UUID, nil is returned.

---

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)