The ID Verification Android SDK provides the setCustomUIConfig interface for customizing user interface (UI) colors and icons. You can create custom UI configurations as a file or in JSON data format and pass them to the setCustomUIConfig interface to apply custom UI effects. This topic describes the UI customization interface and provides code examples.
Some custom configurations may require an SDK upgrade. Upgrade the SDK to the latest version before you use these configurations. If custom user interface settings conflict with the extension parameters of the verification interface, the user interface settings take precedence. This ensures a consistent and intuitive user experience.
Interface description
The Android SDK provides the setCustomUIConfig interface for customizing UI colors and icons. Call this method and pass the required parameters to apply custom UI effects.
Interface definition
Parameters
Name | Type | Description |
paramType | int | The type of the custom input parameter. Valid values:
|
param | String | The data to be passed in based on the value of paramType. |
Response elements
This method returns a string. If an error or exception occurs when the SDK parses the content of the parameter, a message is returned.
If the configuration parameters are invalid, check the returned message for more information.
Sample code
// Pass the assets file name.
String fileName = "DTFCustomUIConfig.json";
int paramType = IDTFacade.EXT_PARAMS_CONFIG_ASSETS_NAME;
String customUIErrMsg = IdentityPlatform.getInstance().setCustomUIConfig(paramType, fileName);
// Pass a JSON string.
String jsonConfig = "<Custom UI configuration in JSON format>";
int paramType = IDTFacade.EXT_PARAMS_CONFIG_JSON;
String customUIErrMsg = IdentityPlatform.getInstance().setCustomUIConfig(paramType, jsonConfig);Custom UI configuration content
Custom UI configurations allow you to customize the font colors and certain icons on the authentication page. A complete example and detailed field descriptions are provided below.




















































































