iOS GlobalIQA SDK (v1.2.8) User Guide

Overview

AAIGlobalIQASDK contains two modules, the core module AAIGlobalIQASDK.xcframework, the network module AAINetwork.xcframework. The actual total size of the SDK is about 3.4MB(arm64, disable bitcode).

Migration Guides

  1. When migrating from 1.0.x to 1.1.x or higher, you need to modify your Podfile to reintegrate the SDK(including SDK dependency AAINetwork.xcframework).

Run demo project

  1. Download the AAIGlobalIQASDK and extract it, then navigate to the directory of AAIGlobalIQASDKObjCDemo or AAIGlobalIQASDKSwiftDemo project and install the dependencies:

  2. Open xcworkspace file in Xcode.

  3. Specify your license, and configure regin and cardType and cardSide:

  4. Run.

Installation

CocoaPods

  1. Specify the SDK name and url in the podfile:

  2. Install the dependencies in your project:

  3. Add camera usage description in Info.plist as bellow. Ignore this step if you have added those.

Manually

  1. Download the AAIGlobalIQASDK, then extract it and add AAIGlobalIQASDK.xcframework to your project and set embed as "Embed & Sign".

  2. Choose "TARGETS -> General" add the following system libraries and frameworks in the Frameworks, Libraries, and Embedded Content section:

    • libc++.tbd
    • libz.tbd
    • AVFoundation.framework
    • CoreGraphics.framework
    • MediaPlayer.framework
    • SystemConfiguration.framework
    • Accelerate.framework
  3. Download the AAINetwork.xcframework and extract it, then copy AAINetwork.xcframework to your project and add it in section "TARGETS -> General -> Frameworks,Libraries,and Embedded Content", then set Embed as "Embed & Sign".

  4. Add camera usage description in Info.plist as bellow. Ignore this step if you have added those.

Usage

  1. Import SDK and initialize with regin and cardType and cardSide:

  2. User binding (Optional, but highly recommended).

    You can use this method to pass us your unique user ID, and we will establish a mapping relationship based on that ID. It's easy to track logs with us in case of problems.

  3. Configure SDK license and show SDK page:

  4. Get detection results.

Customizable UI

  1. UI Cutomization.

    Currently, the SDK only supports limited UI customization, see demo project for more details.

  2. Resources File Customization. Currently, this SDK supports English (en), Simplified Chinese (zh-Hans), Indonesian (id), Thai (th). The SDK will use the corresponding resource file according to the current language of the device. If this device language is not in the above languages, the SDK will use English by default. If you want to support only a fixed language, you can set the languageLprojName property of AAIGlobalIQAConfig to specify the language you want the SDK to use. The resource files corresponding to these languages are in the following bundles:

    NameDescriptionCustomizable description
    AAIIQALanguageStringMuti-language bundleCan be modified directly
    AAIIQAAudio.bundleAudio bundleUse your audio file to replace it. NOTE: the audio file name cannot be changed
  3. Error code list.

    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 "AAIIQAOperatingModeScanning".
    Other error codeSee document

FAQ

  1. The earliest supported iOS version is iOS9, and don't support bitcode.

Change logs and release history

See iOS IQA SDK release history