Table of Contents

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

broadcaster IBluetoothBroadcaster

The broadcaster that owns this client device.

id string

The unique identifier for the connected device, typically a UUID or MAC address.

logger ILogger<IBluetoothConnectedDevice>

The logger for logging operations.

Exceptions

PlatformNotSupportedException

Methods

NativeDisconnectAsync(TimeSpan?, CancellationToken)

Performs the native disconnection logic for the client device.

protected override ValueTask NativeDisconnectAsync(TimeSpan? timeout = null, CancellationToken cancellationToken = default)

Parameters

timeout TimeSpan?
cancellationToken CancellationToken

Returns

ValueTask

Exceptions

PlatformNotSupportedException