Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void OnDecodedData(object sender, CaptureHelper.DecodedDataArgs decodedData)
 {
     ScannerSupport.OnDecodedData(decodedData.DecodedData.DataToUTF8String, decodedData.DecodedData.SymbologyName);
 }
Ejemplo n.º 3
0
 public void OnDeviceRemoval(object sender, CaptureHelper.DeviceArgs removedDevice)
 {
     ScannerSupport.OnDeviceRemoval(removedDevice.CaptureDevice.DeviceTypeName);
 }