Setup custom messages

The method use to Setup custom messages

accuraService.SetupAccuraConfig(configObj, new AccuraScanResultCallBack());

Parameters:

configObj: JSON Object

  • ACCURA_ERROR_CODE_MOTION: String

  • ACCURA_ERROR_CODE_DOCUMENT_IN_FRAME: String

  • ACCURA_ERROR_CODE_BRING_DOCUMENT_IN_FRAME: String

  • ACCURA_ERROR_CODE_PROCESSING: String

  • ACCURA_ERROR_CODE_BLUR_DOCUMENT: String

  • ACCURA_ERROR_CODE_FACE_BLUR: String

  • ACCURA_ERROR_CODE_GLARE_DOCUMENT: String

  • ACCURA_ERROR_CODE_HOLOGRAM: String

  • ACCURA_ERROR_CODE_DARK_DOCUMENT: String

  • ACCURA_ERROR_CODE_PHOTO_COPY_DOCUMENT: String

  • ACCURA_ERROR_CODE_FACE: String

  • ACCURA_ERROR_CODE_MRZ: String

  • ACCURA_ERROR_CODE_PASSPORT_MRZ: String

  • ACCURA_ERROR_CODE_ID_MRZ: String

  • ACCURA_ERROR_CODE_VISA_MRZ: String

  • ACCURA_ERROR_CODE_WRONG_SIDE: String

  • ACCURA_ERROR_CODE_UPSIDE_DOWN_SIDE: String

  • IS_SHOW_LOGO: Boolean

  • SCAN_TITLE_OCR_FRONT: String

  • SCAN_TITLE_OCR_BACK: String

  • SCAN_TITLE_OCR: String

  • SCAN_TITLE_BANKCARD: String

  • SCAN_TITLE_BARCODE: String

  • SCAN_TITLE_MRZ_PDF417_FRONT: String

  • SCAN_TITLE_MRZ_PDF417_BACK: String

  • SCAN_TITLE_DLPLATE: String

Response:

Success: JSON Response Error: String

Example Functions:

public partial class MainPage : ContentPage
{
    public MainPage()
    {
        JObject configObj = JObject.Parse(@"{
            'ACCURA_ERROR_CODE_MOTION':'Keep Document Steady',
            'ACCURA_ERROR_CODE_DOCUMENT_IN_FRAME' : 'Keep document in frame',
            'ACCURA_ERROR_CODE_BRING_DOCUMENT_IN_FRAME' : 'Bring card near to frame',
            'ACCURA_ERROR_CODE_PROCESSING' : 'Processing...',
            'ACCURA_ERROR_CODE_BLUR_DOCUMENT' : 'Blur detect in document',
            'ACCURA_ERROR_CODE_FACE_BLUR' : 'Blur detected over face',
            'ACCURA_ERROR_CODE_GLARE_DOCUMENT' : 'Glare detect in document',
            'ACCURA_ERROR_CODE_HOLOGRAM' : 'Hologram Detected',
            'ACCURA_ERROR_CODE_DARK_DOCUMENT' : 'Low lighting detected',
            'ACCURA_ERROR_CODE_PHOTO_COPY_DOCUMENT' : 'Can not accept Photo Copy Document',
            'ACCURA_ERROR_CODE_FACE' : 'Face not detected',
            'ACCURA_ERROR_CODE_MRZ' : 'MRZ not detected',
            'ACCURA_ERROR_CODE_PASSPORT_MRZ' : 'Passport MRZ not detected',
            'ACCURA_ERROR_CODE_ID_MRZ' : 'ID card MRZ not detected',
            'ACCURA_ERROR_CODE_VISA_MRZ' : 'Visa MRZ not detected',
            'ACCURA_ERROR_CODE_WRONG_SIDE' : 'Scanning wrong side of document',
            'ACCURA_ERROR_CODE_UPSIDE_DOWN_SIDE' : 'Document is upside down. Place it properly',
            'IS_SHOW_LOGO' : true,
            'SCAN_TITLE_OCR_FRONT' : 'Scan Front Side of',
            'SCAN_TITLE_OCR_BACK' : 'Scan Back Side of',
            'SCAN_TITLE_OCR' : 'Scan',
            'SCAN_TITLE_BANKCARD' : 'Scan Bank Card',
            'SCAN_TITLE_BARCODE' : 'Scan Barcode',
            'SCAN_TITLE_MRZ_PDF417_FRONT' : 'Scan Front Side of Document',
            'SCAN_TITLE_MRZ_PDF417_BACK' : 'Now Scan Back Side of Document',
            'SCAN_TITLE_DLPLATE' : 'Scan Number Plate',
        }");
        //Setup scanning messages & logo for OCR, MRZ, Barcode & Bankcard.
        accuraService.SetupAccuraConfig(configObj.ToString(), new AccuraScanResultCallBack());
    }
}
public class AccuraScanResultCallBack : AccuraServiceCallBack {
    public void InvokeResult(string error, string result) {
        if (error != null) {
            // Error block.
        }
        else {
            // Result from the SDK
        }
    }
}
  • Success: JSON Response { String }

  • Error: String

Last updated