Interface IBluetoothNameProvider
- Namespace
- Bluetooth.Abstractions.Scanning
- Assembly
- Bluetooth.Abstractions.Scanning.dll
Interface for providing names for Bluetooth scanning objects such as remote characteristics, descriptors, and services.
public interface IBluetoothNameProvider
Methods
GetKnownCharacteristicName(Guid)
Gets the known name for a Bluetooth characteristic based on its unique identifier (UUID).
Returns null if the UUID maps to multiple services with different names (ambiguous).
Prefer GetKnownCharacteristicName(Guid, Guid) when the service context is available.
string? GetKnownCharacteristicName(Guid characteristic)
Parameters
characteristicGuid
Returns
GetKnownCharacteristicName(Guid, Guid)
Gets the known name for a Bluetooth characteristic given its owning service UUID and characteristic UUID. Use this overload when the service context is known to avoid ambiguity when the same characteristic UUID appears in multiple services.
string? GetKnownCharacteristicName(Guid serviceId, Guid characteristicId)
Parameters
Returns
GetKnownDescriptorName(Guid)
Gets the known name for a Bluetooth descriptor based on its unique identifier (UUID).
string? GetKnownDescriptorName(Guid descriptor)
Parameters
descriptorGuid
Returns
GetKnownServiceName(Guid)
Gets the known name for a Bluetooth service based on its unique identifier (UUID).
string? GetKnownServiceName(Guid service)
Parameters
serviceGuid