Class BaseBluetoothAdapter
- Namespace
- Bluetooth.Core
- Assembly
- Bluetooth.Core.dll
Base class for Bluetooth adapters.
public abstract class BaseBluetoothAdapter : BaseBindableObject, IBluetoothAdapter, INotifyPropertyChanged
- Inheritance
-
BaseBluetoothAdapter
- Implements
- Derived
- Inherited Members
Constructors
BaseBluetoothAdapter(ILogger<IBluetoothAdapter>?)
Initializes a new instance of the BaseBluetoothAdapter class.
protected BaseBluetoothAdapter(ILogger<IBluetoothAdapter>? logger = null)
Parameters
loggerILogger<IBluetoothAdapter>The logger instance for logging adapter operations.
Properties
IsEnabled
Gets whether the platform's Bluetooth radio/adapter is currently enabled.
public bool IsEnabled { get; protected set; }
Property Value
Remarks
Raises PropertyChanged for this property whenever the underlying radio state changes, so consumers can react live (e.g. show a "Bluetooth is off" banner) instead of only finding out the next time a scan fails to start.