IBluetooth.cs 627 B

12345678910111213141516171819202122232425
  1. using System.Collections.ObjectModel;
  2. using System.Security.Cryptography.X509Certificates;
  3. using InABox.Core;
  4. namespace InABox.Avalonia.Platform;
  5. public interface IBluetooth : ILoggable
  6. {
  7. Logger? Logger { get; set; }
  8. Task<bool> IsAvailable();
  9. Task<bool> StartScanningAsync(Guid configServiceId);
  10. Task<bool> StopScanningAsync();
  11. Task<IConnectedBluetoothDevice> Connect(IBluetoothDevice deviceid);
  12. Task<bool> Disconnect(IConnectedBluetoothDevice device);
  13. event EventHandler? Changed;
  14. CoreObservableCollection<IBluetoothDevice> Devices { get; }
  15. }