コード例 #1
0
 public MainPageViewModel(IBleDeviceService bleDeviceServiceIn)
 {
     BleDeviceService = bleDeviceServiceIn;
     BleDeviceService.DeviceDetected += OnDeviceDetected;
     BleDeviceService.DeviceConnectionStateChanged += OnDeviceConnectionChanged;
 }
コード例 #2
0
 public ScanReadingCommand(IBleDeviceService deviceServiceIn)
 {
     deviceService = deviceServiceIn;
     deviceService.DeviceDetected += OnDeviceDetected;
 }
コード例 #3
0
 public ScanForDeviceCommand(IBleDeviceService scanServiceIn)
 {
     scanService = scanServiceIn;
     scanService.DeviceDetected += OnDeviceDetected;
 }