Esempio n. 1
0
        public void OnMedicalCardClicked(object sender, EventArgs ea)
        {
            processedData = null;
            passportButton.FontAttributes    = FontAttributes.None;
            dlButton.FontAttributes          = FontAttributes.None;
            medicalCardButton.FontAttributes = FontAttributes.Bold;
            frontImage.Source    = null;
            frontLabel.IsVisible = true;
            backImage.Source     = null;
            backLabel.IsVisible  = true;
            isFront     = true;
            resultShown = false;
            resetProcessingState();

            if (App.AcuantSDKWrapper.isValidLicense())
            {
                cardType = AcuantCardType.AcuantCardTypeMedicalInsuranceCard;
                App.AcuantSDKWrapper.setCardType((int)cardType);
                App.AcuantSDKWrapper.enableLocationTracking();

                frontImageFrame.IsVisible = true;
                backImageFrame.IsVisible  = true;
            }
            else
            {
                DisplayAlert("Error", "License is not valid yet.", "OK");
            }
        }
Esempio n. 2
0
        public void OnDLClicked(object sender, EventArgs ea)
        {
            App.AcuantSDKWrapper.enableLocationTracking();
            App.AcuantSDKWrapper.setInitialMessage("ALIGN & TAP", Color.Red);
            App.AcuantSDKWrapper.setCapturingMessage("HOLD STEADY", Color.Red);
            processedData = null;
            passportButton.FontAttributes    = FontAttributes.None;
            dlButton.FontAttributes          = FontAttributes.Bold;
            medicalCardButton.FontAttributes = FontAttributes.None;
            frontImage.Source    = null;
            frontLabel.IsVisible = true;
            backLabel.IsVisible  = true;
            isFront          = true;
            this.barcodedata = "";
            resultShown      = false;
            resetProcessingState();

            if (App.AcuantSDKWrapper.isValidLicense())
            {
                cardType = AcuantCardType.AcuantCardTypeDriversLicenseCard;
                App.AcuantSDKWrapper.setCardType((int)cardType);

                frontImageFrame.IsVisible = true;
                backImageFrame.IsVisible  = false;

                var regionSelectionPage = new RegionSelectionPage(this);
                Navigation.PushModalAsync(regionSelectionPage);
            }
            else
            {
                DisplayAlert("Error", "License is not valid yet.", "OK");
            }
        }