public async void OnDeviceArrival(object sender, CaptureHelper.DeviceArgs arrivedDevice) { // first, get the BDADDR of the device so we can supply that to the GUI CaptureHelperDevice.BluetoothAddressResult resultBdAddr = await arrivedDevice.CaptureDevice.GetBluetoothAddressAsync(""); // next get the battery level CaptureHelperDevice.BatteryLevelResult resultBattery = await arrivedDevice.CaptureDevice.GetBatteryLevelAsync(); // now call the universal event ScannerSupport.OnDeviceArrival(arrivedDevice.CaptureDevice.GetDeviceInfo().Name, resultBattery.Percentage, resultBdAddr.BluetoothAddress); }
public void OnDecodedData(object sender, CaptureHelper.DecodedDataArgs decodedData) { ScannerSupport.OnDecodedData(decodedData.DecodedData.DataToUTF8String, decodedData.DecodedData.SymbologyName); }
public void OnDeviceRemoval(object sender, CaptureHelper.DeviceArgs removedDevice) { ScannerSupport.OnDeviceRemoval(removedDevice.CaptureDevice.DeviceTypeName); }