Class ParamsCustomization.CustomizationEditor
- java.lang.Object
-
- com.regula.documentreader.api.params.ParamsCustomization.CustomizationEditor
-
- Enclosing class:
- ParamsCustomization
public static class ParamsCustomization.CustomizationEditor extends java.lang.Object
Interface used for modifyingParamsCustomization
object. All changes you make in an editor are batched, and not copied back to the original ParamsCustomization until you callapply()
-
-
Method Summary
-
-
-
Method Detail
-
setCameraFrameLineCap
public ParamsCustomization.CustomizationEditor setCameraFrameLineCap(Paint.Cap cap)
-
setCameraFrameCornerRadius
public ParamsCustomization.CustomizationEditor setCameraFrameCornerRadius(java.lang.Float cameraFrameCornerRadius)
-
setCameraFramePortraitAspectRatio
public ParamsCustomization.CustomizationEditor setCameraFramePortraitAspectRatio(java.lang.Float ratio)
-
setCameraFrameLandscapeAspectRatio
public ParamsCustomization.CustomizationEditor setCameraFrameLandscapeAspectRatio(java.lang.Float ratio)
-
setCameraFrameVerticalPositionMultiplier
public ParamsCustomization.CustomizationEditor setCameraFrameVerticalPositionMultiplier(java.lang.Float multiplier)
-
setCustomStatusPositionMultiplier
public ParamsCustomization.CustomizationEditor setCustomStatusPositionMultiplier(java.lang.Float multiplier)
-
setCustomLabelStatus
public ParamsCustomization.CustomizationEditor setCustomLabelStatus(SpannableString status)
-
setHologramAnimationPositionMultiplier
@Deprecated public ParamsCustomization.CustomizationEditor setHologramAnimationPositionMultiplier(java.lang.Float multiplier)
Deprecated.
-
setLivenessAnimationPositionMultiplier
public ParamsCustomization.CustomizationEditor setLivenessAnimationPositionMultiplier(java.lang.Float multiplier)
-
setHologramAnimationImageScaleType
@Deprecated public ParamsCustomization.CustomizationEditor setHologramAnimationImageScaleType(ImageView.ScaleType scaleType)
Deprecated.SeeParamsCustomization.getHologramAnimationImageScaleType()
use#setLivenessAnimationImageScaleType(ImageView.ScaleType)
instead
-
setLivenessAnimationImageScaleType
public ParamsCustomization.CustomizationEditor setLivenessAnimationImageScaleType(ImageView.ScaleType scaleType)
-
setHologramAnimationImageMatrix
@Deprecated public ParamsCustomization.CustomizationEditor setHologramAnimationImageMatrix(Matrix matrix)
Deprecated.SeeParamsCustomization.getHologramAnimationImageMatrix()
use#setLivenessAnimationImageMatrix(Matrix)
instead
-
setLivenessAnimationImageMatrix
public ParamsCustomization.CustomizationEditor setLivenessAnimationImageMatrix(Matrix matrix)
-
setBackgroundMaskAlpha
public ParamsCustomization.CustomizationEditor setBackgroundMaskAlpha(java.lang.Float backgroundMaskAlpha)
-
setBorderBackgroundImage
public ParamsCustomization.CustomizationEditor setBorderBackgroundImage(Drawable borderBackgroundImage)
-
setBorderBackgroundImageMatrix
public ParamsCustomization.CustomizationEditor setBorderBackgroundImageMatrix(Matrix borderBackgroundImageMatrix)
-
setBorderBackgroundImageScaleType
public ParamsCustomization.CustomizationEditor setBorderBackgroundImageScaleType(ImageView.ScaleType scaleType)
-
setCameraFrameOffsetWidth
public ParamsCustomization.CustomizationEditor setCameraFrameOffsetWidth(java.lang.Integer offset)
-
setResultStatusPositionMultiplier
public ParamsCustomization.CustomizationEditor setResultStatusPositionMultiplier(java.lang.Float resultStatusPositionMultiplier)
-
setStatusPositionMultiplier
public ParamsCustomization.CustomizationEditor setStatusPositionMultiplier(java.lang.Float statusPositionMultiplier)
-
setMultipageAnimationBackImageMatrix
public ParamsCustomization.CustomizationEditor setMultipageAnimationBackImageMatrix(Matrix matrix)
-
setMultipageAnimationBackImageScaleType
public ParamsCustomization.CustomizationEditor setMultipageAnimationBackImageScaleType(ImageView.ScaleType scaleType)
-
setHelpAnimationImageMatrix
public ParamsCustomization.CustomizationEditor setHelpAnimationImageMatrix(Matrix matrix)
-
setMultipageAnimationBackImage
public ParamsCustomization.CustomizationEditor setMultipageAnimationBackImage(Drawable multipageAnimationBackImage)
-
setMultipageAnimationFrontImageMatrix
public ParamsCustomization.CustomizationEditor setMultipageAnimationFrontImageMatrix(Matrix matrix)
-
setHelpAnimationImageScaleType
public ParamsCustomization.CustomizationEditor setHelpAnimationImageScaleType(ImageView.ScaleType scaleType)
-
setMultipageAnimationFrontImageScaleType
public ParamsCustomization.CustomizationEditor setMultipageAnimationFrontImageScaleType(ImageView.ScaleType scaleType)
-
setMultipageAnimationFrontImage
public ParamsCustomization.CustomizationEditor setMultipageAnimationFrontImage(Drawable multipageAnimationFrontImage)
-
setHelpAnimationImage
public ParamsCustomization.CustomizationEditor setHelpAnimationImage(Drawable helpAnimationImage)
-
setHologramAnimationImage
@Deprecated public ParamsCustomization.CustomizationEditor setHologramAnimationImage(Drawable helpAnimationImage)
Deprecated.SeeParamsCustomization.getHologramAnimationImage()
use#setLivenessAnimationImage(Drawable)
instead
-
setLivenessAnimationImage
public ParamsCustomization.CustomizationEditor setLivenessAnimationImage(Drawable helpAnimationImage)
-
setShowBackgroundMask
public ParamsCustomization.CustomizationEditor setShowBackgroundMask(boolean showBackgroundMask)
-
setShowNextPageAnimation
public ParamsCustomization.CustomizationEditor setShowNextPageAnimation(boolean showNextPageAnimation)
-
setNextPageAnimationStartDelay
public ParamsCustomization.CustomizationEditor setNextPageAnimationStartDelay(float delay)
- Parameters:
delay
- – The amount of the delay, in milliseconds
-
setNextPageAnimationEndDelay
public ParamsCustomization.CustomizationEditor setNextPageAnimationEndDelay(float delay)
- Parameters:
delay
- – The amount of the delay, in milliseconds
-
setActivityIndicatorColor
public ParamsCustomization.CustomizationEditor setActivityIndicatorColor(java.lang.String activityIndicatorColor)
-
setActivityIndicatorSize
public ParamsCustomization.CustomizationEditor setActivityIndicatorSize(java.lang.Integer activityIndicatorSize)
-
setTintColor
public ParamsCustomization.CustomizationEditor setTintColor(java.lang.String tintColor)
-
setMultipageButtonBackgroundColor
public ParamsCustomization.CustomizationEditor setMultipageButtonBackgroundColor(java.lang.String multipageButtonBackgroundColor)
-
setResultStatusBackgroundColor
public ParamsCustomization.CustomizationEditor setResultStatusBackgroundColor(java.lang.String resultStatusBackgroundColor)
-
setResultStatusTextColor
public ParamsCustomization.CustomizationEditor setResultStatusTextColor(java.lang.String resultStatusTextColor)
-
setResultStatusTextSize
public ParamsCustomization.CustomizationEditor setResultStatusTextSize(java.lang.Integer resultStatusTextSize)
-
setResultStatusTextFont
public ParamsCustomization.CustomizationEditor setResultStatusTextFont(Typeface resultStatusTextFont)
-
setCameraFrameLineLength
public ParamsCustomization.CustomizationEditor setCameraFrameLineLength(java.lang.Integer cameraFrameLineLength)
-
setCameraFrameShapeType
public ParamsCustomization.CustomizationEditor setCameraFrameShapeType(java.lang.Integer cameraFrameShapeType)
-
setStatusTextColor
public ParamsCustomization.CustomizationEditor setStatusTextColor(java.lang.String statusTextColor)
-
setStatusTextSize
public ParamsCustomization.CustomizationEditor setStatusTextSize(java.lang.Integer statusTextSize)
-
setStatusBackgroundColor
public ParamsCustomization.CustomizationEditor setStatusBackgroundColor(java.lang.String statusBackgroundColor)
-
setStatusTextFont
public ParamsCustomization.CustomizationEditor setStatusTextFont(Typeface statusTextFont)
-
setCameraFrameActiveColor
public ParamsCustomization.CustomizationEditor setCameraFrameActiveColor(java.lang.String cameraFrameActiveColor)
-
setCameraFrameDefaultColor
public ParamsCustomization.CustomizationEditor setCameraFrameDefaultColor(java.lang.String cameraFrameDefaultColor)
-
setCameraFrameBorderWidth
public ParamsCustomization.CustomizationEditor setCameraFrameBorderWidth(java.lang.Integer cameraFrameBorderWidth)
-
setShowHelpAnimation
public ParamsCustomization.CustomizationEditor setShowHelpAnimation(boolean showHelpAnimation)
-
setShowResultStatusMessages
public ParamsCustomization.CustomizationEditor setShowResultStatusMessages(boolean showResultStatusMessages)
-
setShowStatusMessages
public ParamsCustomization.CustomizationEditor setShowStatusMessages(boolean showStatusMessages)
-
setResultStatus
public ParamsCustomization.CustomizationEditor setResultStatus(java.lang.String status)
-
setStatus
public ParamsCustomization.CustomizationEditor setStatus(java.lang.String status)
-
setTorchImageOn
public ParamsCustomization.CustomizationEditor setTorchImageOn(Drawable torchImageOn)
-
setTorchImageOff
public ParamsCustomization.CustomizationEditor setTorchImageOff(Drawable torchImageOff)
-
setCloseButtonImage
public ParamsCustomization.CustomizationEditor setCloseButtonImage(Drawable closeButton)
-
setCaptureButtonImage
public ParamsCustomization.CustomizationEditor setCaptureButtonImage(Drawable captureButtonImage)
-
setChangeFrameCollapseButtonImage
public ParamsCustomization.CustomizationEditor setChangeFrameCollapseButtonImage(Drawable changeFrameButtonCollapseImage)
-
setChangeFrameExpandButtonImage
public ParamsCustomization.CustomizationEditor setChangeFrameExpandButtonImage(Drawable changeFrameButtonExpandImage)
-
setCameraSwitchButtonImage
public ParamsCustomization.CustomizationEditor setCameraSwitchButtonImage(Drawable cameraSwitchButtonImage)
-
setToolbarSize
public ParamsCustomization.CustomizationEditor setToolbarSize(java.lang.Float height)
-
setUiCustomizationLayer
public ParamsCustomization.CustomizationEditor setUiCustomizationLayer(JSONObject mUiCustomizationLayer)
-
setCameraPreviewBackgroundColor
public ParamsCustomization.CustomizationEditor setCameraPreviewBackgroundColor(java.lang.String resultStatusTextColor)
-
setColor
public ParamsCustomization.CustomizationEditor setColor(CustomizationColor item, long value)
Customizing UI Colors- Parameters:
item
- - customization objectCustomizationColor
value
- of color (e.g. 0xff00ff00)
-
setColor
public ParamsCustomization.CustomizationEditor setColor(CustomizationColor item, int value)
Customizing UI Colors- Parameters:
item
- - customization objectCustomizationColor
value
- of color (e.g.or color from resources)
-
setFont
public ParamsCustomization.CustomizationEditor setFont(CustomizationFont item, int value)
Customizing fonts- Parameters:
item
- - customization objectCustomizationFont
value
- of font
-
setFont
public ParamsCustomization.CustomizationEditor setFont(CustomizationFont item, Typeface typeface)
Customizing fonts- Parameters:
item
- - customization objectCustomizationFont
typeface
-
-
setFontSize
public ParamsCustomization.CustomizationEditor setFontSize(CustomizationFont item, int value)
Customizing font size- Parameters:
item
- - customization objectCustomizationFont
value
- of font size
-
setImage
public ParamsCustomization.CustomizationEditor setImage(CustomizationImage image, Drawable drawable)
Customizing images- Parameters:
image
- - customization objectCustomizationImage
drawable
-
-
setBackgroundMaskColor
public ParamsCustomization.CustomizationEditor setBackgroundMaskColor(java.lang.String resultStatusTextColor)
-
apply
public void apply()
Use this method to apply set values. Changes will take effect on internal events
-
applyImmediately
public void applyImmediately(Context context)
Use this method to apply set values immediately- Parameters:
context
- Context
-
-