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
characteristicIdGuidThe 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
serviceIdGuidThe UUID of the owning service.
characteristicIdGuidThe UUID of the characteristic.
Returns
- string
The characteristic name, or
nullif not registered.
GetServiceName(Guid)
Gets the known name for a service by its UUID.
string? GetServiceName(Guid serviceId)
Parameters
serviceIdGuidThe UUID of the service.
Returns
- string
The service name, or
nullif not registered.
Register(BluetoothCharacteristicDefinition)
Registers a Bluetooth characteristic definition.
void Register(BluetoothCharacteristicDefinition definition)
Parameters
definitionBluetoothCharacteristicDefinitionThe characteristic definition to register.
Register(BluetoothServiceDefinition)
Registers a Bluetooth service definition.
void Register(BluetoothServiceDefinition definition)
Parameters
definitionBluetoothServiceDefinitionThe service definition to register.