Table of Contents

Class DotNetCoreBluetoothRemoteService

Namespace
Bluetooth.Maui.Platforms.DotNetCore.Scanning
Assembly
Bluetooth.Maui.Platforms.DotNetCore.dll

Interface representing a Bluetooth service, providing properties and methods for interacting with it.

public class DotNetCoreBluetoothRemoteService : BaseBluetoothRemoteService, IBluetoothRemoteService, INotifyPropertyChanged, IAsyncDisposable
Inheritance
DotNetCoreBluetoothRemoteService
Implements
Inherited Members

Constructors

DotNetCoreBluetoothRemoteService(IBluetoothRemoteDevice, Guid, IBluetoothNameProvider?, ILogger<IBluetoothRemoteService>?)

Initializes a new instance of the BaseBluetoothRemoteService class.

public DotNetCoreBluetoothRemoteService(IBluetoothRemoteDevice parentDevice, Guid id, IBluetoothNameProvider? nameProvider = null, ILogger<IBluetoothRemoteService>? logger = null)

Parameters

parentDevice IBluetoothRemoteDevice

The Bluetooth device associated with this service.

id Guid

The unique identifier (UUID) of the service.

nameProvider IBluetoothNameProvider

An optional provider for service names, used to resolve the name based on the ID.

logger ILogger<IBluetoothRemoteService>

The logger instance to use for logging (optional).

Exceptions

PlatformNotSupportedException

Methods

NativeCharacteristicsExplorationAsync(TimeSpan?, CancellationToken)

Platform-specific implementation to explore characteristics.

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

Parameters

timeout TimeSpan?

Optional timeout for the operation.

cancellationToken CancellationToken

Optional cancellation token for the operation.

Returns

ValueTask

A task that represents the asynchronous operation.

Exceptions

PlatformNotSupportedException