Sample.iOS.HomeViewController.HandleScanResult C# (CSharp) Méthode

HandleScanResult() public méthode

public HandleScanResult ( ZXing result ) : void
result ZXing
Résultat void
		void HandleScanResult(ZXing.Result result)
		{
			string msg = "";

			if (result != null && !string.IsNullOrEmpty(result.Text))
				msg = "Found Barcode: " + result.Text;
			else
				msg = "Scanning Canceled!";

			this.InvokeOnMainThread(() => {
				var av = new UIAlertView("Barcode Result", msg, null, "OK", null);
				av.Show();
			});
		}