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)
Sets ThemeConfiguration used in modules designed using traditional Android XML layouts. final CommonConfig.Builder
setThemeConfig(IncodeThemeConfig themeConfig)
Sets IncodeThemeConfig used in modules designed using Compose, currently supported in following modules: ID V2
final CommonConfig.Builder
setShowDelayedOnboardingIntroScreen(Boolean showDelayedOnboardingIntroScreen)
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)
Sets ThemeConfiguration used in modules designed using traditional Android XML layouts.
- Parameters:
themeConfiguration
- Contains Theme and Styling customization- Returns:
-
setThemeConfig
final CommonConfig.Builder setThemeConfig(IncodeThemeConfig themeConfig)
Sets IncodeThemeConfig used in modules designed using Compose, currently supported in following modules:
ID V2
- Parameters:
themeConfig
- IncodeThemeConfig that is used as theme source ornull
.
-
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)
-
-
-