Package com.incode.welcome_sdk
Class CommonConfig.Builder
-
- All Implemented Interfaces:
public final class CommonConfig.Builder
-
-
Constructor Summary
Constructors Constructor Description CommonConfig.Builder()
-
Method Summary
Modifier and Type Method Description final CommonConfig.Builder
setRecognitionThreshold(Float recognitionThreshold)
Set custom face recognition threshold final CommonConfig.Builder
setSpoofThreshold(Float spoofThreshold)
Set custom spoof detection threshold final CommonConfig.Builder
setMaskThreshold(Float maskThreshold)
Set custom mask detection threshold final CommonConfig.Builder
setIdGlareThreshold(Float idGlareThreshold)
final CommonConfig.Builder
setIdBlurThreshold(Float idBlurThreshold)
final CommonConfig.Builder
setShowCloseButton(Boolean showCloseButton)
final CommonConfig.Builder
setShowExitConfirmation(Boolean showExitConfirmation)
final CommonConfig.Builder
setLocalizationLanguage(String localizationLanguage)
Set the SDK language. final CommonConfig.Builder
setThemeConfiguration(ThemeConfiguration themeConfiguration)
final CommonConfig
build()
final static CommonConfig.Builder
from(CommonConfig existingConfig)
-
-
Method Detail
-
setRecognitionThreshold
final CommonConfig.Builder setRecognitionThreshold(Float recognitionThreshold)
Set custom face recognition threshold
- Parameters:
recognitionThreshold
- Threshold value, between 0 and 1- Returns:
-
setSpoofThreshold
final CommonConfig.Builder setSpoofThreshold(Float spoofThreshold)
Set custom spoof detection threshold
- Parameters:
spoofThreshold
- Threshold value, between 0 and 1- Returns:
-
setMaskThreshold
@Deprecated(message = "Not used anymore") final CommonConfig.Builder setMaskThreshold(Float maskThreshold)
Set custom mask detection threshold
- Parameters:
maskThreshold
- Threshold value, between 0 and 1- Returns:
-
setIdGlareThreshold
final CommonConfig.Builder setIdGlareThreshold(Float idGlareThreshold)
- Parameters:
idGlareThreshold
- Glare threshold value for ID Scan, values between 0 and 1.- Returns:
-
setIdBlurThreshold
final CommonConfig.Builder setIdBlurThreshold(Float idBlurThreshold)
- Parameters:
idBlurThreshold
- Blurriness threshold value for ID Scan, values between 0 and 1.- Returns:
-
setShowCloseButton
final CommonConfig.Builder setShowCloseButton(Boolean showCloseButton)
- Parameters:
showCloseButton
- Shows or hides close button.- Returns:
-
setShowExitConfirmation
final CommonConfig.Builder setShowExitConfirmation(Boolean showExitConfirmation)
- Parameters:
showExitConfirmation
- Shows (true) or hides (false) exit confirmation screen after the user presses the back button.- Returns:
-
setLocalizationLanguage
final CommonConfig.Builder setLocalizationLanguage(String localizationLanguage)
Set the SDK language.
After canceling the SDK flow, reset the application language and call recreate() method in the onSuccess, onUserCancelled, and onError methods of OnboardingListener if the application language is different from the SDK language. Make sure you have included 'extensions' dependency in the corresponding build.gradle.
- Parameters:
localizationLanguage
- Locale code in languageCode_countryCode format.- Returns:
-
setThemeConfiguration
final CommonConfig.Builder setThemeConfiguration(ThemeConfiguration themeConfiguration)
- Parameters:
themeConfiguration
- Contains Theme and Styling customization- Returns:
-
build
final CommonConfig build()
-
from
final static CommonConfig.Builder from(CommonConfig existingConfig)
-
-
-
-