Dramatically Reduce Onboarding Costs While Stopping Fraud.
The NetkiSDK provides the ability for the clients implementing it to configure and personalize some UI elements to make it fit better with their application and show a more natural transition between their app and the SDK. This document shows what elements can be customized and the way they are customized.
The list of elements that can be customized are:
// Colors
PrimaryButtonBackgroundColor
SecondaryButtonBackgroundColor
PrimaryButtonTextColor
SecondaryButtonTextColor
InstructionsTitleTextColor
SuccessColor
ErrorColor
// Appearance
ButtonsCornerRadius
// Text
TitleForDriverLicenseInstructionsFront
TitleForDriverLicenseInstructionsBack
TitleForPassportInstructions
TitleForPassportLastPageInstructions
TitleForSelfieInstructions
TitleForGovermentIdInstructionsFront
TitleForGovermentIdInstructionsBack
// Instruction images
DriverLicenseFrontInstructionBackgroundImage
DriverLicenseBackInstructionBackgroundImage
PassportInstructionBackgroundImage
PassportLastPageInstructionBackgroundImage
GovermentIdFrontInstructionBackgroundImage
GovermentIdBackInstructionBackgroundImage
SelfieInstructionBackgroundImage
For each of the customizable elements, the SDK has a setter method that can be used to override the default value.
Those setters are exposed through
netkiSDK.set
To customize the different elements use the methods:
// Colors
// @param hexString(String): new color in hex format, for example "32a852"
netkiSDK.setCOLOR_TO_OVERRIDE(hexString);
// Appearance
// @param cornerRadius(float): the radius for the corner of the buttons, for example 15.0
netkiSDK.setButtonsCornerRadius(cornerRadius);
// Text
// @param text(String): to override the instructions in the specific page, for example "Remove sunglasses and mask"
netkiSDK.setTEXT_TO_OVERRIDE(text);
// Instruction images
// @param path(String): of the image/video to display, support local files or urls, for example "https://test.com/image1234.jpg"
netkiSDK.setINSTRUCTION_RESOURCE_TO_OVERRIDE(resolveAssetSource(path));
To customize this screen we can override the elements:
1 - TitleForDriverLicenseInstructionsFront, InstructionsTitleTextColor
2 - DriverLicenseFrontInstructionBackgroundImage
3 - SecondaryButtonBackgroundColor, SecondaryButtonTextColor
4 - PrimaryButtonBackgroundColor, PrimaryButtonTextColor
After overriding these values the screen would look like this:
The review screens are controlled by the same theme settings as above. The primary and secondary colors will control these features.
1 - SecondaryButtonBackgroundColor, SecondaryButtonTextColor
2 - PrimaryButtonBackgroundColor, PrimaryButtonTextColor
When you set the corner radius it will modify the buttons as shown below: