---
title: "init(data:)"
framework: IOBluetooth
role: symbol
role_heading: Initializer
path: "iobluetooth/iobluetoothsdpuuid/init(data:)"
---

# init(data:)

Creates a new IOBluetoothSDPUUID object from the given NSData.

## Declaration

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

## Parameters

- `data`: The NSData containing the UUID bytes.

## Return Value

Return Value Returns the new IOBluetoothSDPUUID object or nil on failure.

## Discussion

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

## See Also

### Initializers

- [init(bytes:length:)](iobluetooth/iobluetoothsdpuuid/init(bytes:length:).md)
- [init(uuid16:)](iobluetooth/iobluetoothsdpuuid/init(uuid16:)-7j3zk.md)
- [init(uuid32:)](iobluetooth/iobluetoothsdpuuid/init(uuid32:)-7qjwq.md)
