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
-
-
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:
-
setShowDelayedOnboardingIntroScreen
final CommonConfig.Builder setShowDelayedOnboardingIntroScreen(Boolean showDelayedOnboardingIntroScreen)
- Parameters:
showDelayedOnboardingIntroScreen
- Shows or hides the introduction screen when the SDK is started in Delayed mode.- Returns:
-
build
final CommonConfig build()
-
from
final static CommonConfig.Builder from(CommonConfig existingConfig)
-
-
-
-