Skip to content

Instructions

  • The SDK can show an animation to help position a document correctly.

Show/hide the help animation:

DocumentReader.Instance().customization().edit().setShowHelpAnimation(true).apply();
DocumentReader.Instance().customization().edit().setShowHelpAnimation(true).apply()
  • You can add an image for the help animation. If not set, the default image is used:
DocumentReader.Instance().customization().edit().setHelpAnimationImage(getResources().getDrawable(R.drawable.icon)).apply();
DocumentReader.Instance().customization().edit().setHelpAnimationImage(getDrawable(R.drawable.icon)).apply()
  • To change the scaling of the help animation image, use one of the ImageView.ScaleType members:
DocumentReader.Instance().customization().edit().setHelpAnimationImageScaleType(ImageView.ScaleType.MATRIX).apply();
Matrix matrix = new Matrix();
DocumentReader.Instance().customization().edit().setHelpAnimationImageMatrix(matrix).apply();
DocumentReader.Instance().customization().edit().setHelpAnimationImageScaleType(ImageView.ScaleType.MATRIX).apply()
val matrix = Matrix()
DocumentReader.Instance().customization().edit().setHelpAnimationImageMatrix(matrix).apply()

Next Steps