Esempio n. 1
0
 public void OnDecodedData(object sender, CaptureHelper.DecodedDataArgs decodedData)
 {
     RunOnUiThread(() =>
     {
         Android.Widget.Toast.MakeText(this, "Scanned data: " + decodedData.DecodedData.DataToUTF8String, Android.Widget.ToastLength.Short).Show();
     });
 }
Esempio n. 2
0
        private void DecodedData(object sender, CaptureHelper.DecodedDataArgs e)
        {
            //Remove delay issues, run this first
            SendResponse(Responses.None);

            //Decouple DecodedData
            _buffer = e.DecodedData.DataToUTF8String;

            BarcodeScanned?.Invoke(this, e);
        }
        // Display the scanned data on screen in the appropriate text control

        void OnDecodedData(object sender, CaptureHelper.DecodedDataArgs decodedData)
        {
            Console.WriteLine("Start OnDecodedData()");
            string Data = decodedData.DecodedData.DataToUTF8String;

            InvokeOnMainThread(() =>
            {
                scannedDataLabel.Text = Data;
            });
            Console.WriteLine("End OnDecodedData()");
        }
Esempio n. 4
0
        // Display the scanned data on screen in the appropriate text control

        void OnDecodedData(object sender, CaptureHelper.DecodedDataArgs decodedData)
        {
            Console.WriteLine("Start OnDecodedData()");
            string Data = decodedData.DecodedData.DataToUTF8String;

            InvokeOnMainThread(() =>
            {
                scannedDataLabel.Text = Data;
            });

            if (Data.EndsWith('6'))
            {
                Console.WriteLine("Bad feedback...");
                CurrentDevice.SetDataConfirmationAsync(DataConfirmation.kBeepBad, DataConfirmation.kLedRed, DataConfirmation.kRumbleBad);
            }
            else
            {
                CurrentDevice.SetDataConfirmationAsync(DataConfirmation.kBeepGood, DataConfirmation.kLedGreen, DataConfirmation.kRumbleGood);
            }

            Console.WriteLine("End OnDecodedData()");
        }
Esempio n. 5
0
        // received when a barcode has been decoded correctly
        void mCapture_DecodedData(object sender, CaptureHelper.DecodedDataArgs e)
        {
            string infoAndDecodedData = e.DecodedData.SymbologyName + ": " + e.DecodedData.DataToUTF8String;

            listBoxDecodedData.Items.Add(infoAndDecodedData);
        }
Esempio n. 6
0
 public void OnDecodedData(object sender, CaptureHelper.DecodedDataArgs decodedData)
 {
     ScannerSupport.OnDecodedData(decodedData.DecodedData.DataToUTF8String, decodedData.DecodedData.SymbologyName);
 }