Class SdkConfig.Builder
java.lang.Object
com.yoti.api.client.docs.session.create.SdkConfig.Builder
- Enclosing class:
- SdkConfig
Builder to assist in the creation of
SdkConfig.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theSdkConfigusing the values supplied to the builderwithAllowedCaptureMethods(String allowedCaptureMethods) Sets the allowed capture methodwithAllowHandoff(boolean allowHandoff) Sets if the user is allowed to perform mobile handoffSets the allowed capture method to "CAMERA"Sets the allowed capture method to "CAMERA_AND_UPLOAD"withAttemptsConfiguration(AttemptsConfiguration attemptsConfiguration) Sets theAttemptsConfigurationfor the sessionwithErrorUrl(String errorUrl) Sets the error URL for the redirect that follows the web/native client uploading documents unsuccessfullywithFontColour(String fontColour) Sets the font colour to be used by the web/native client (used on the button)withLocale(String locale) Sets the language locale used by the web/native clientwithPresetIssuingCountry(String presetIssuingCountry) Sets the preset issuing country used by the web/native clientwithPrimaryColour(String primaryColour) Sets the primary colour to be used by the web/native clientwithPrivacyPolicyUrl(String privacyPolicyUrl) Sets the privacy policy URLwithSecondaryColour(String secondaryColour) Sets the secondary colour to be used by the web/native client (used on the button)withSuccessUrl(String successUrl) Sets the success URL for the redirect that follows the web/native client uploading documents successfully
-
Method Details
-
withAllowsCamera
Sets the allowed capture method to "CAMERA"- Returns:
- the builder
-
withAllowsCameraAndUpload
Sets the allowed capture method to "CAMERA_AND_UPLOAD"- Returns:
- the builder
-
withAllowedCaptureMethods
Sets the allowed capture method- Parameters:
allowedCaptureMethods- the allowed capture method- Returns:
- the builder
-
withPrimaryColour
Sets the primary colour to be used by the web/native client- Parameters:
primaryColour- the primary colour, hexadecimal value e.g. #ff0000- Returns:
- the builder
-
withSecondaryColour
Sets the secondary colour to be used by the web/native client (used on the button)- Parameters:
secondaryColour- the secondary colour, hexadecimal value e.g. #ff0000- Returns:
- the builder
-
withFontColour
Sets the font colour to be used by the web/native client (used on the button)- Parameters:
fontColour- the font colour- Returns:
- the builder
-
withLocale
Sets the language locale used by the web/native client- Parameters:
locale- the locale, e.g. "en"- Returns:
- the builder
-
withPresetIssuingCountry
Sets the preset issuing country used by the web/native client- Parameters:
presetIssuingCountry- the preset issuing country, 3 letter ISO code e.g. GBR- Returns:
- the builder
-
withSuccessUrl
Sets the success URL for the redirect that follows the web/native client uploading documents successfully- Parameters:
successUrl- the success URL- Returns:
- the builder
-
withErrorUrl
Sets the error URL for the redirect that follows the web/native client uploading documents unsuccessfully- Parameters:
errorUrl- the error URL- Returns:
- the builder
-
withPrivacyPolicyUrl
Sets the privacy policy URL- Parameters:
privacyPolicyUrl- the privacy policy URL- Returns:
- the builder
-
withAllowHandoff
Sets if the user is allowed to perform mobile handoff- Parameters:
allowHandoff- if mobile handoff is allowed- Returns:
- the builder
-
withAttemptsConfiguration
Sets theAttemptsConfigurationfor the session- Parameters:
attemptsConfiguration- the configuration for retries- Returns:
- the builder
-
build
Builds theSdkConfigusing the values supplied to the builder- Returns:
- the
SdkConfig
-