Class DotNetCoreBluetoothConnectedDevice
- Namespace
- Bluetooth.Maui.Platforms.DotNetCore.Broadcasting
- Assembly
- Bluetooth.Maui.Platforms.DotNetCore.dll
Base class for Bluetooth broadcaster devices.
public class DotNetCoreBluetoothConnectedDevice : BaseBluetoothConnectedDevice, IBluetoothConnectedDevice, INotifyPropertyChanged, IAsyncDisposable
- Inheritance
-
DotNetCoreBluetoothConnectedDevice
- Implements
- Inherited Members
Constructors
DotNetCoreBluetoothConnectedDevice(IBluetoothBroadcaster, string, ILogger<IBluetoothConnectedDevice>?)
Initializes a new instance of the BaseBluetoothConnectedDevice class.
public DotNetCoreBluetoothConnectedDevice(IBluetoothBroadcaster broadcaster, string id, ILogger<IBluetoothConnectedDevice>? logger = null)
Parameters
broadcasterIBluetoothBroadcasterThe broadcaster that owns this client device.
idstringThe unique identifier for the connected device, typically a UUID or MAC address.
loggerILogger<IBluetoothConnectedDevice>The logger for logging operations.
Exceptions
Methods
NativeDisconnectAsync(TimeSpan?, CancellationToken)
Performs the native disconnection logic for the client device.
protected override ValueTask NativeDisconnectAsync(TimeSpan? timeout = null, CancellationToken cancellationToken = default)
Parameters
timeoutTimeSpan?cancellationTokenCancellationToken