Release Notes
Product Announcements
└── src└── main├── AndroidManifest.xml├── assets├── java└── res├── values-zh-rCN│ └── custom_strings.xml└── values-zh-rHK└── custom_strings.xml
└── src└── main├── AndroidManifest.xml├── assets├── java└── res├── values-th-rTH│ └── custom_strings.xml <<<<<<<<<<< Taking Thai as an example, values-th-rTH├── values-zh-rCN│ └── custom_strings.xml└── values-zh-rHK└── custom_strings.xml
EkycHyConfig ekycHyConfig = new EkycHyConfig();ekycHyConfig.setLanguageStyle(LanguageStyle.CUSTOMIZE_LANGUAGE);ekycHyConfig.setLanguageCode("th-TH");
language code | Corresponding countries or regions of use |
af-ZA | Afrikaans - South Africa |
sq-AL | Albanian - Albania |
ar-DZ | Arabic - Algeria |
ar-BH | Arabic - Bahrain |
ar-EG | Arabic - Egypt |
ar-IQ | Arabic - Iraq |
ar-JO | Arabic - Jordan |
ar-KW | Arabic - Kuwait |
ar-LB | Arabic - Lebanon |
ar-LY | Arabic - Libya |
ar-MA | Arabic - Morocco |
ar-OM | Arabic - Oman |
ar-QA | Arabic - Qatar |
eu-ES | Basque - Basque |
be-BY | Belarusian - Belarus |
bg-BG | Bulgarian - Bulgaria |
ca-ES | Catalan - Catalonia |
zh-HK | Chinese - Hong Kong (China) |
zh-MO | Chinese - Macao (China) |
zh-CN | Chinese - China |
zh-SG | Chinese - Singapore |
zh-TW | Chinese - Taiwan (China) |
zh-CHS | Chinese (Simplified) |
zh-CHT | Chinese (Traditional) |
hr-HR | Croatian - Croatia |
cs-CZ | Czech - Czech Republic |
da-DK | Danish - Denmark |
div-MV | Dhivehi - Maldives |
nl-BE | Dutch - Belgium |
nl-NL | Dutch - Netherlands |
en-AU | English - Australia |
en-CA | English - Canada |
en-ZA | English - South Africa |
en-PH | English - Philippines |
en-NZ | English - New Zealand |
en-GB | English - UK |
en-US | English - United States |
fa-IR | Persian - Iran |
fi-FI | Finnish - Finland |
fr-FR | French - France |
fr-BE | French - Belgium |
fr-MC | French - Monaco |
fr-CH | French - Switzerland |
gl-ES | Galician - Galicia |
ka-GE | Georgia State - Georgia State |
de-DE | German - Germany |
de-LU | German - Luxembourg |
de-CH | German - Switzerland |
el-GR | Greek - Greece |
gu-IN | Gujarati - India |
he-IL | Hebrew - Israel |
hi-IN | Hindi - India |
hu-HU | Hungarian - Hungary |
is-IS | Icelandic - Iceland |
it-IT | Italian - Italy |
ja-JP | Japanese - Japan |
kk-KZ | Kazakh - Kazakhstan |
kn-IN | Kannada - India |
ko-KR | Korean - South Korea |
lv-LV | Latvian - Latvia |
lt-LT | Lithuanian - Lithuania |
ms-BN | Malay - Brunei |
ms-MY | Malay - Malaysia |
mr-IN | Marathi - India |
mn-MN | Mongolian - Mongolia |
nn-NO | Norwegian (Nynorsk) - Norway |
pl-PL | Polish - Poland |
pt-BR | Portuguese - Brazil |
pt-PT | Portuguese - Portugal |
ro-RO | Romanian - Romania |
sa-IN | Sanskrit - India |
ru-RU | Russian - Russia |
sk-SK | Slovak - Slovakia |
es-AR | Spanish - Argentina |
es-ES | Spanish - Spain |
sv-SE | Swedish - Sweden |
th-TH | Thai - Thailand |
tr-TR | Turkish - Türkiye |
uk-UA | Ukrainian - Ukraine |
ur-PK | Urdu - Pakistan |
vi-VN | Vietnamese - Vietnam |
OcrUiConfig and FaceAuthUiConfig in EkycHyConfig, you can achieve complete UI customization.resources/custom_layout/ directory:ocr_detect_fragment.xml: Default layout for the OCR recognition page.huiyan_fragment_authing.xml: Default layout for the selfie verification page.OcrUiConfig.setPortraitLayoutResId() by passing in the Resource ID of the custom layout:EkycHyConfig ekycHyConfig = new EkycHyConfig();OcrUiConfig ocrUiConfig = new OcrUiConfig();ocrUiConfig.setPortraitLayoutResId(R.layout.custom_ocr_layout);ekycHyConfig.setOcrUiConfig(ocrUiConfig);
android:id of these Views. It is recommended to modify using ocr_detect_fragment.xml as a template.FaceAuthUiConfig.setAuthLayoutResId() by passing in the Resource ID of the custom layout:EkycHyConfig ekycHyConfig = new EkycHyConfig();FaceAuthUiConfig faceAuthUiConfig = new FaceAuthUiConfig();faceAuthUiConfig.setAuthLayoutResId(R.layout.custom_face_auth_layout);faceAuthUiConfig.setMainActivityThemeId(R.style.CustomFaceAuthTheme);ekycHyConfig.setFaceAuthUiConfig(faceAuthUiConfig);
android:id of all Views must match those required by the selfie verification SDK, as these Views participate in interface event binding. It is recommended to modify using huiyan_fragment_authing.xml as a template.setAuthEventCallBack() method. When the main interface for liveness face detection is created, the HuiYanAuthEventCallBack.onMainViewCreate(View) method is called back. At this point, you can obtain controls from the custom layout and register event listeners:EkycHySdk.setAuthEventCallBack(new HuiYanAuthEventCallBack() {@Overridepublic void onMainViewCreate(View authView) {if (authView == null) {return;}// Obtain controls in the custom layoutButton customButton = authView.findViewById(R.id.custom_button_id);if (customButton != null) {customButton.setOnClickListener(v -> {// Handle custom button click eventsLog.d(TAG, "Custom button clicked");});}}@Overrideverpublic void onMainViewDestroy() {// Cleanup upon page destructionLog.d(TAG, "Auth view destroyed");}});
setOcrEventCallBack() method:EkycHySdk.setOcrEventCallBack(new OcrEventListener() {@Overridepublic void onMainViewCreate(View ocrView) {if (ocrView == null) {return;}// Obtain controls in the custom OCR layoutButton customOcrButton = ocrView.findViewById(R.id.custom_ocr_button_id);if (customOcrButton != null) {customOcrButton.setOnClickListener(v -> {// Handle custom button click eventsLog.d(TAG, "Custom OCR button clicked");});}}@Overridepublic void onMainViewDestroy() {// Cleanup upon page destructionLog.d(TAG, "OCR view destroyed");}});
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback