Table of Contents

Interface IBluetoothServiceDefinitionRegistry

Namespace
Bluetooth.Abstractions.Scanning.Profiles
Assembly
Bluetooth.Abstractions.Scanning.dll

Registry for Bluetooth service and characteristic service definitions. Provides name resolution and definition lookup for known service definitions.

public interface IBluetoothServiceDefinitionRegistry

Methods

GetCharacteristicName(Guid)

Gets the known name for a characteristic by its UUID alone. Returns null if the UUID is ambiguous (registered under multiple services with different names) or not registered.

string? GetCharacteristicName(Guid characteristicId)

Parameters

characteristicId Guid

The UUID of the characteristic.

Returns

string

The characteristic name if unambiguous, or null.

GetCharacteristicName(Guid, Guid)

Gets the known name for a characteristic by service and characteristic UUID pair.

string? GetCharacteristicName(Guid serviceId, Guid characteristicId)

Parameters

serviceId Guid

The UUID of the owning service.

characteristicId Guid

The UUID of the characteristic.

Returns

string

The characteristic name, or null if not registered.

GetServiceName(Guid)

Gets the known name for a service by its UUID.

string? GetServiceName(Guid serviceId)

Parameters

serviceId Guid

The UUID of the service.

Returns

string

The service name, or null if not registered.

Register(BluetoothCharacteristicDefinition)

Registers a Bluetooth characteristic definition.

void Register(BluetoothCharacteristicDefinition definition)

Parameters

definition BluetoothCharacteristicDefinition

The characteristic definition to register.

Register(BluetoothServiceDefinition)

Registers a Bluetooth service definition.

void Register(BluetoothServiceDefinition definition)

Parameters

definition BluetoothServiceDefinition

The service definition to register.