> For the complete documentation index, see [llms.txt](https://docs.accurascan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.accurascan.com/language/xamarin/functions/setup-custom-messages.md).

# 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:***&#x20;

***Success***: JSON Response\
\&#xNAN;***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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.accurascan.com/language/xamarin/functions/setup-custom-messages.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
