//this method is called when a result is found
        void IMrzResultListener.OnResult(MrzResult scanResult)
        {
            Log.Debug(typeof(EnergyPageRenderer).Name, "Result: " + scanResult.Result.ToString());
            Toast.MakeText(Context, scanResult.Result.ToString(), ToastLength.Long).Show();

            _scanView.StartScanning();
        }
        private static string GetDescriptionForMrzResult(CapturedId result)
        {
            StringBuilder builder = new StringBuilder();

            AppendDescriptionForCapturedId(result, builder);

            MrzResult mrzResult = result.Mrz;

            AppendField(builder, "Document Code: ", mrzResult.DocumentCode);
            AppendField(builder, "Names Are Truncated: ", mrzResult.NamesAreTruncated ? "Yes" : "No");
            AppendField(builder, "Optional: ", mrzResult.Optional ?? "<empty>");
            AppendField(builder, "Optional 1: ", mrzResult.Optional1 ?? "<empty>");

            return(builder.ToString());
        }
Esempio n. 3
0
        void IMrzResultListener.OnResult(MrzResult scanResult)
        {
            Toast.MakeText(Context, scanResult.Result.ToString(), ToastLength.Long).Show();

            _scanView.StartScanning();
        }
Esempio n. 4
0
 void IMrzResultListener.OnResult(MrzResult scanResult)
 {
     _resultView.SetIdentification(scanResult.Result as Identification);
     _resultView.Visibility = ViewStates.Visible;
 }