Barcode & Bankcard

Accura Scan’s solution scans and extracts data from Barcodes as well as Bank cards.

Barcode

The method use to Scan Barcode

accuraService.StartBarcode(configObj, BarcodeType, appOriantation, new AccuraScanResultCallBack());

Parameter:

  • configObj: { enableLogs: false }

  • BarcodeType: String

  • Orientation: String (Default portrait)

Response:

Success: JSON Response Error: String

Example Functions:

public partial class MainPage : ContentPage
{
    public MainPage()
    {
        JObject configObj = JObject.Parse(@"{
            'enableLogs' : false
        }");
        accuraService.StartBarcode(configObj.ToString(), barcode_type, appOriantation, new AccuraScanResultCallBack());
    }
}
public class AccuraScanResultCallBack : AccuraServiceCallBack {
    public void InvokeResult(string error, string result) {
        if (error != null) {
            // Error block.
        }
        else {
            // Result from the SDK
        }
    }
}

Bankcard

The method use to Scan Bankcard

accuraService.StartBankCard(configObj, appOriantation, new AccuraScanResultCallBack());

Parameter:

  • configObj: { enableLogs: false }

  • Orientation: String (Default portrait)

Response:

Success: JSON Response Error: String

Example Function:

public partial class MainPage : ContentPage
{
    public MainPage()
    {
        JObject configObj = JObject.Parse(@"{
            'enableLogs' : false
        }");
        accuraService.StartBankCard(configObj.ToString(), appOriantation, new AccuraScanResultCallBack());
    }
}
public class AccuraScanResultCallBack : AccuraServiceCallBack {
    public void InvokeResult(string error, string result) {
        if (error != null) {
            // Error block.
        }
        else {
            // Result from the SDK
        }
    }
}

Last updated