Xamarin.Forms iOS-iqc-sdk-plugin

Running the demo project

  1. Download the demo project and extract it, then open this project using Visual Studio.

  2. Modify the MainPage.xaml.cs to specify your region, cardType, cardSide, and license(The license content is obtained by your server calling our openapi).

  3. Run project XamarinFormsIQCDemo.iOS on your iPhone device.

Getting started

  1. Integrate the SDK into your project:

    1. Add NuGet source https://public-n3.advai.net/repository/nuget-hosted/.
    2. Add package AdvanceAI.iOS.IQC.
  2. Add camera usage description in Info.plist as bellow. Ignore this step if you have added those.

  3. New interface IIQCService.cs to your XamarinForms project:

  4. New IOSIQCService.cs to your XamarinForms.iOS project:

  5. In your XamarinForms project, specify your region, cardType, cardSide, and license content, then show SDK page :

Error code

The errorCode values of Result are as follows:

NameDescription
USER_GIVE_UPUser tapped the back button
DEVICE_NOT_SUPPORTThis device is not supported
CAMERA_PERMISSION_DENIEDPermission to access the camera is not authorized
NETWORK_REQUEST_FAILEDNetwork request failed
CAMERA_OPEN_FAILEDFailed to open camera
MODEL_ERRORLoad model failed
SCAN_TIMEOUTScan timeout. Note this code appears only when you set the OperatingMode of AAIGlobalIQAConfig to "AAIIQAOperatingMode.Scanning". (This code avaliable on 1.2.0 or higher)
Other error codeSee document