Contents

init(type:value:)

Creates a mutable descriptor with a specified value.

Declaration

init(type UUID: CBUUID, value: Any?)

Parameters

Return Value

A newly initialized mutable descriptor.

Discussion

The value type of value depends on the type of descriptor:

If you want to create a local characteristic format descriptor, the descriptor’s value must conform to the attribute value of the characteristic format descriptor as defined in the Bluetooth 4.0 specification, Volume 3, Part G, Section 3.3.3.5.

For more information, see Core Bluetooth Programming Guide.