descriptor

abstract fun descriptor(uuid: UUID, descriptor: LocalDescriptor.DSL.() -> Unit)

Adds a LocalDescriptor to the characteristic being built This is not supported on iOS and will be ignored there.

Parameters

uuid

the UUID of the LocalDescriptor to add

descriptor

the LocalDescriptor.DSL to use to set up the LocalDescriptor


open fun descriptor(uuidString: String, descriptor: LocalDescriptor.DSL.() -> Unit)

Adds a LocalDescriptor to the characteristic being built This is not supported on iOS and will be ignored there.

Parameters

uuidString

string of the UUID of the LocalDescriptor to add

descriptor

the LocalDescriptor.DSL to use to set up the LocalDescriptor

Throws

UUIDException

if uuidString is not a valid UUID