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
parentDeviceIBluetoothRemoteDeviceThe Bluetooth device associated with this service.
idGuidThe unique identifier (UUID) of the service.
nameProviderIBluetoothNameProviderAn optional provider for service names, used to resolve the name based on the ID.
loggerILogger<IBluetoothRemoteService>The logger instance to use for logging (optional).
Exceptions
Methods
NativeCharacteristicsExplorationAsync(TimeSpan?, CancellationToken)
Platform-specific implementation to explore characteristics.
protected override ValueTask NativeCharacteristicsExplorationAsync(TimeSpan? timeout = null, CancellationToken cancellationToken = default)
Parameters
timeoutTimeSpan?Optional timeout for the operation.
cancellationTokenCancellationTokenOptional cancellation token for the operation.
Returns
- ValueTask
A task that represents the asynchronous operation.