implementation 'ai.advance.mobile-sdk.android:global-iqa:1.2.8'
implementation 'ai.advance.mobile-sdk.android:global-iqa:1.2.7'
implementation 'ai.advance.mobile-sdk.android:global-iqa:1.2.6'
implementation 'ai.advance.mobile-sdk.android:global-iqa:1.2.5'
implementation 'ai.advance.mobile-sdk.android:global-iqa:1.2.4'
Bug Fix
In this new release of Global Image Quality Check, we have made the following improvements in handling exception cases below:
RuntimeException
occurred here for unknown reasons. We adjust the catch block to catch Exception
instead of IOException
.implementation 'ai.advance.mobile-sdk.android:global-iqa:1.2.3.1'
Bug Fix
In this new release of Global Image Quality Check, we have made the following improvements in handling exception cases below:
Camera.stopPreview();
is called to stop the camera preview, the Camera API throws an unhandled exception. Hence, a try-catch block was used to catch this exceptionGlobalIQAView
is not fully initialized and the user clicks on the page to execute GlobalIQAView.autoFocus()
, it leads to a NullPointerException
internally. To avoid this issue, we have added a null check to handle this exception.implementation 'ai.advance.mobile-sdk.android:global-iqa:1.2.3'
implementation 'ai.advance.mobile-sdk.android:global-iqa:1.2.2'
implementation 'ai.advance.mobile-sdk.android:global-iqa:1.2.1'
implementation 'ai.advance.mobile-sdk.android:global-iqa:1.2.0'
implementation 'ai.advance.mobile-sdk.android:global-iqa:1.1.0'
implementation 'ai.advance.mobile-sdk.android:global-iqa:1.0.9'
Scan Document
implementation 'ai.advance.mobile-sdk.android:global-iqa:1.0.8'
PAGIBG
card typeimplementation 'ai.advance.mobile-sdk.android:global-iqa:1.0.7'
Add the following methods for customizing the UI
The text above the camera view supports passing in rich text:
xxxxxxxxxx
SpannableString spannableString = new SpannableString("xxxxx");
spannableString.setSpan(....);
intent.putExtra(GlobalIQAActivity.EXTRA_SPANNABLE_ABOVE_CAMERA, spannableString);
In take photo mode,support for setting rich text to the tip view below the camera view:
xxxxxxxxxx
SpannableString spannableString = new SpannableString("xxxxx");
spannableString.setSpan(....);
intent.putExtra(GlobalIQAActivity.EXTRA_SPANNABLE_TIP_TEXT_OF_TAKE_PHOTO, spannableString);
In take photo mode,support for setting rich text for the tip view below the image when previewing after taking a photo:
xxxxxxxxxx
SpannableString spannableString = new SpannableString("xxxxx");
spannableString.setSpan(....);
intent.putExtra(GlobalIQAActivity.EXTRA_SPANNABLE_PREVIEW_TIP_OF_TAKE_PHOTO, spannableString);
Camera view mask support for setting rounded corners (in px):
xxxxxxxxxx
new UIExtras.Builder()
.setFrameRectCornerRadius(20)
.build()
In take photo mode, the background color of the tip view below the camera view can be changed:
xxxxxxxxxx
new UIExtras.Builder()
.setTakePhotoTipViewBackgroundColor(your color value)
.build()
In take photo mode,The icon to the left of the tip view below the camera view can be set to hide:
xxxxxxxxxx
new UIExtras.Builder()
.takePhotoTipViewLeftIconVisible(false)
.build()
In scan mode, you can customize the style of the tip view:
xxxxxxxxxx
TipViewUIElements elements = new TipViewUIElements();
elements.setNoCardDrawableResId(R.drawable.xxx);// No card detected
elements.setHoldSteadilyDrawableResId(R.drawable.xxx);// Please hold the phone steady
elements.setCardPoorQualityDrawableResId(R.drawable.xxx);// Card poor quality: blurred/spotty/too dark
elements.setCardIncompleteDrawableResId(R.drawable.xxx);// Card incomplete
elements.setCardTooSmallDrawableResId(R.drawable.xxx);// Card too small
elements.setViewWidthPercentRelativeToCameraView(1f); // The width of the tip view relative to the camera view, e.g., set to 1 for equal width of the camera view
elements.setAspectRatio(0.25f);// Tip view aspect ratio,width/height
new UIExtras.Builder()
.setPortraitTipViewBackgrounds(elements)// In portrait
.setLandscapeTipViewBackgrounds(landscapeElements)// In landscape
.build()
implementation 'ai.advance.mobile-sdk.android:global-iqa:1.0.6'
Add the following types of card recognition
implementation 'ai.advance.mobile-sdk.android:global-iqa:1.0.5'
Add a maven repository for online dependencies, remove the guardian_global_iqa_v1.0.x.aar
and guardian_core_vx.x.aar
that your project already depends on, and do the dependencies as follows.
Add a maven repository dependency to build.gradle
in the root of your project
xxxxxxxxxx
allprojects {
repositories {
google()
jcenter()
...
maven {
url 'http://public-n3.advai.net/repository/maven-releases/'
// If your gradle version is greater than 7.0, you need to add the following configuration to allow pulling aar via http
allowInsecureProtocol = true
}
}
}
Adding package dependencies to app/build.gradle
xxxxxxxxxx
dependencies {
...
// Version record view:http://public-n3.advai.net/repository/maven-releases/ai/advance/mobile-sdk/android/global-iqa/maven-metadata.xml
implementation 'ai.advance.mobile-sdk.android:global-iqa:1.0.4'
}
Add several custom UI methods, please refer to the integration documentation for details.
xxxxxxxxxx
...
.setPagePortraitBackgroundResource(R.drawable.xxx)// The page background picture at portrait state
.setPageLandscapeBackgroundResource(R.drawable.xxx)// The page background picture at landscape state
.setPageLandscapeTitleBgResource(R.drawable.xxx)// The title background picture at portrait state
.setPagePortraitTitleBgResource(R.drawable.xxx)// The page background picture at landscape state
.setCameraWidthPercentInPortraitState(0.8f)// The width percent of camera view when the page at portrait state,the value must between [0,1]
.setCameraHeightPercentInLandscapeState(0.7)// The width percent of camera view when the page at landscape state,the value must between [0,0.7]
.setRetakeBtnTextColor(your colorRes)//The retake button text color in 'Take Photo' mode
.setContinueBtnTextColor(your colorRes)// The continue button text color in 'Take Photo' mode
.setTakePhotoTipDialogShowSeconds(3)// The tip dialog(when scanning timeout) duration seconds, set to 0 will not show the dialog
.setScanLimitSeconds(20)// The scanning seconds limit,the value must between [5,60]
.setCountdownTimerVisible(true)// Whether the countdown timer view shown
add function to get picture type
xxxxxxxxxx
String pictureType = GlobalIQAResult.getPictureType();// takePhoto or scan