Example #1
0
        private void OnBarcodeResultFound(Result obj)
        {
            if (!string.IsNullOrEmpty(obj.Text))
            {
                var barcodeScannerResult = new BarcodeScannerResult
                {
                    Format = obj.BarcodeFormat.ToString(),
                    Text   = obj.Text
                };

                this.scanSucceeded = true;

                this.BarcodeScannerPlugin.OnScanSucceeded(barcodeScannerResult);
                this.NavigationService.GoBack();
            }
        }
Example #2
0
 public void OnScanSucceeded(BarcodeScannerResult scanResult)
 {
     var resultString = JsonHelper.Serialize(scanResult);
     this.DispatchCommandResult(new PluginResult(PluginResult.Status.OK, resultString));
 }
Example #3
0
        private void OnBarcodeResultFound(Result obj)
        {
            if (BarcodeIsValid(obj.Text))
            {
                var barcodeScannerResult = new BarcodeScannerResult();
                barcodeScannerResult.format = obj.BarcodeFormat.ToString();
                barcodeScannerResult.text = obj.Text;
                scanSucceeded = true;

                BarcodeScannerPlugin.OnScanSucceeded(barcodeScannerResult);
                NavigationService.GoBack();
            }
        }
Example #4
0
		private void OnBarcodeResultFound(Result obj)
		{
			if (!string.IsNullOrEmpty(obj.Text))
			{
				var barcodeScannerResult = new BarcodeScannerResult
				{
					Format = obj.BarcodeFormat.ToString(),
					Text = obj.Text
				};

				this.scanSucceeded = true;

				this.BarcodeScannerPlugin.OnScanSucceeded(barcodeScannerResult);
				this.NavigationService.GoBack();
			}
		}