Initializer

init(data:)

Creates a Core Bluetooth UUID object from a 16-, 32-, or 128-bit UUID data container.

Declaration

init(data theData: Data)

Parameters

theData

Data containing a 16-, 32-, or 128-bit UUID.

Return Value

A new CBUUID object for the specified UUID data.

Discussion

This method is useful when handling the UUID of a Bluetooth attribute in raw bytes.

See Also

Creating New CBUUID Objects

init(string: String)

Creates a Core Bluetooth UUID object from a 16-, 32-, or 128-bit UUID string.

init(cfuuid: CFUUID)

Creates a Core Bluetooth UUID object from a Core Foundation UUID object.

Deprecated
init(nsuuid: UUID)

Creates a Core Bluetooth UUID object from a Foundation UUID object.