Skip to content

Customization

The SDK only provides the camera screens; you build the rest of the app with your own design.

With IDCardDetectionConfiguration:

Setting Default
setHintHidden(boolean) — hides the document frame hint true
setHintColor(int) Color.BLUE
setHintDisplayRatio(float) — between 0 and 1 0.75f
setHintStrokeWidth(float) 20.0f
setHintBackgroundColor(int) Transparent
setOverlayBackgroundColor(int) Color.argb(128, 255, 255, 255)
setCapturedStyle(Paint.Style) FILL_AND_STROKE
setCapturedStrokeWidth(float) 10.0f
setCapturedColor(int) — when the document is captured Color.argb(64, 0, 255, 0)
setUncapturedColor(int) — before the document is captured Color.argb(64, 255, 0, 0)
configuration.setHintHidden(true);
configuration.setOverlayBackgroundColor(Color.argb(128, 0, 0, 0));
configuration.setCapturedColor(Color.argb(64, 0, 255, 0));
LivenessBaseFragment.setLayerShape(LivenessFragment.Shape.OVAL);
livenessFragment.showFaceRect(LivenessBaseFragment.FACE_DETECTION_SUCCESS_LAYER);

Change the frame colours with HologramBaseFragment.layerIdleColor and HologramBaseFragment.layerSuccessColor.

Every text shown to the user (guidance, error messages, control names) is defined in your app, so you can offer it in Turkish, English or any language.