Customization
The SDK only provides the camera screens; you build the rest of the app with your own design.
Document capture screen
Section titled “Document capture screen”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));Liveness screen
Section titled “Liveness screen”LivenessBaseFragment.setLayerShape(LivenessFragment.Shape.OVAL);livenessFragment.showFaceRect(LivenessBaseFragment.FACE_DETECTION_SUCCESS_LAYER);Hologram screen
Section titled “Hologram screen”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.