Class IdScan.Builder
-
- All Implemented Interfaces:
public final class IdScan.Builder
-
-
Constructor Summary
Constructors Constructor Description IdScan.Builder()
-
Method Summary
Modifier and Type Method Description final IdScan.Builderfrom(IdScan existingIdScan)final IdScan.BuildersetShowIdTutorials(Boolean showIdTutorials)final IdScan.BuildersetWaitForTutorials(Boolean waitForTutorials)final IdScan.BuildersetEnableFrontShownAsBackCheck(Boolean enableFrontShownAsBackCheck)Enables/disables check if front shown while scanning back. final IdScan.BuildersetEnableBackShownAsFrontCheck(Boolean enableBackShownAsFrontCheck)Enables/disables check if back shown while scanning front Make sure to include 'com.incode.sdk:model-id-face-detection' in order to use this feature. final IdScan.BuildersetShowIdTypeChooser(Boolean showIdTypeChooser)final IdScan.BuildersetIdType(IdScan.IdType idType)final IdScan.BuildersetIdCategory(IdCategory idCategory)final IdScan.BuildersetScanStep(IdScan.ScanStep scanStep)Sets which steps of the ID scanning process should be taken. final IdScan.BuildersetShowRetakeScreen(Boolean showForManualCapture, Boolean showForAutoCapture)final IdScan.BuildersetShowRetakeScreen(Boolean showForManualCapture)final IdScan.BuildersetShowRetakeScreenForAutoCapture(Boolean showRetakeScreenForAutoCapture)final IdScan.BuildersetShowRetakeScreenForManualCapture(Boolean showRetakeScreenForManualCapture)final IdScan.BuildersetEnableRotationOnRetakeScreen(Boolean enable)final IdScan.BuildersetAutocaptureUXMode(IdScan.AutocaptureUXMode autocaptureUXMode)Sets the type of feedback which is displayed before ID or Passport is captured in the scan process. final IdScan.BuildersetShowIdOverlay(Boolean isVisible)Enables ID overlay. final IdScan.BuildersetStreamFramesEnabled(Boolean streamFramesEnabled)Enables or disables video streaming of the IdScan module. final IdScan.BuildersetAutoCaptureTimeout(Integer autoCaptureTimeout)Sets the ID auto capture timeout in seconds. final IdScan.BuildersetAutoCaptureNoIdTimeout(Integer autoCaptureNoIdTimeout)Sets the ID auto capture timeout in seconds for the fallback timer. final IdScan.BuildersetCaptureAttempts(Integer captureAttempts)Sets the ID capture attempts. final IdScan.BuildersetStreamAudioEnabled(Boolean enabled)Enables or disables audio during streaming of the IdScan module. final IdScan.BuildersetDigitalIdEnabled(Boolean enabled)Enables or disables onboarding with Digital ID in form of PDF file. final IdScanbuild()-
-
Method Detail
-
from
final IdScan.Builder from(IdScan existingIdScan)
-
setShowIdTutorials
final IdScan.Builder setShowIdTutorials(Boolean showIdTutorials)
- Parameters:
showIdTutorials- If true, tutorials will be shown on how to scan an ID.- Returns:
-
setWaitForTutorials
@Deprecated(message = "No longer supported in the new UI") final IdScan.Builder setWaitForTutorials(Boolean waitForTutorials)
-
setEnableFrontShownAsBackCheck
final IdScan.Builder setEnableFrontShownAsBackCheck(Boolean enableFrontShownAsBackCheck)
Enables/disables check if front shown while scanning back. Make sure to include 'com.incode.sdk:model-id-face-detection' in order to use this feature.
- Parameters:
enableFrontShownAsBackCheck- If true, will perform check.- Returns:
-
setEnableBackShownAsFrontCheck
final IdScan.Builder setEnableBackShownAsFrontCheck(Boolean enableBackShownAsFrontCheck)
Enables/disables check if back shown while scanning front Make sure to include 'com.incode.sdk:model-id-face-detection' in order to use this feature.
- Parameters:
enableBackShownAsFrontCheck- If true, will perform check.- Returns:
-
setShowIdTypeChooser
final IdScan.Builder setShowIdTypeChooser(Boolean showIdTypeChooser)
-
setIdType
final IdScan.Builder setIdType(IdScan.IdType idType)
-
setIdCategory
final IdScan.Builder setIdCategory(IdCategory idCategory)
-
setScanStep
final IdScan.Builder setScanStep(IdScan.ScanStep scanStep)
Sets which steps of the ID scanning process should be taken.
- Parameters:
scanStep- Represents which steps in the ID scanning process will be included.- Returns:
-
setShowRetakeScreen
@Deprecated(message = "No longer supported in the new UI")@JvmOverloads() final IdScan.Builder setShowRetakeScreen(Boolean showForManualCapture, Boolean showForAutoCapture)
- Parameters:
showForManualCapture- Shows (true) or hides (false) retake screen after manual capture mode was used.showForAutoCapture- Shows (true) or hides (false) retake screen after auto capture mode was used.- Returns:
-
setShowRetakeScreen
@Deprecated(message = "No longer supported in the new UI")@JvmOverloads() final IdScan.Builder setShowRetakeScreen(Boolean showForManualCapture)
- Parameters:
showForManualCapture- Shows (true) or hides (false) retake screen after manual capture mode was used.- Returns:
-
setShowRetakeScreenForAutoCapture
@Deprecated(message = "No longer supported in the new UI") final IdScan.Builder setShowRetakeScreenForAutoCapture(Boolean showRetakeScreenForAutoCapture)
- Parameters:
showRetakeScreenForAutoCapture- Shows (true) or hides (false) retake screen after auto capture mode was used.- Returns:
-
setShowRetakeScreenForManualCapture
@Deprecated(message = "No longer supported in the new UI") final IdScan.Builder setShowRetakeScreenForManualCapture(Boolean showRetakeScreenForManualCapture)
- Parameters:
showRetakeScreenForManualCapture- Shows (true) or hides (false) retake screen after manual capture mode was used.- Returns:
-
setEnableRotationOnRetakeScreen
@Deprecated(message = "No longer supported in the new UI") final IdScan.Builder setEnableRotationOnRetakeScreen(Boolean enable)
-
setAutocaptureUXMode
@Deprecated(message = "No longer supported in the new UI") final IdScan.Builder setAutocaptureUXMode(IdScan.AutocaptureUXMode autocaptureUXMode)
Sets the type of feedback which is displayed before ID or Passport is captured in the scan process.
- Parameters:
autocaptureUXMode- Countdown mode or HoldStill mode with the option to set duration.- Returns:
-
setShowIdOverlay
@Deprecated(message = "No longer supported in the new UI") final IdScan.Builder setShowIdOverlay(Boolean isVisible)
Enables ID overlay.
- Parameters:
isVisible-If true, will show ID overlay. Default is false.
- Returns:
-
setStreamFramesEnabled
final IdScan.Builder setStreamFramesEnabled(Boolean streamFramesEnabled)
Enables or disables video streaming of the IdScan module. Make sure to include 'com.incode.sdk:video-streaming' in order to use this feature.
<p> Note: This setting is ignored if the device has 2GB of RAM or less.- Parameters:
streamFramesEnabled- If true, perform streaming during the ID scan.- Returns:
-
setAutoCaptureTimeout
final IdScan.Builder setAutoCaptureTimeout(Integer autoCaptureTimeout)
Sets the ID auto capture timeout in seconds.
- Parameters:
autoCaptureTimeout- Auto capture timeout value.
-
setAutoCaptureNoIdTimeout
final IdScan.Builder setAutoCaptureNoIdTimeout(Integer autoCaptureNoIdTimeout)
Sets the ID auto capture timeout in seconds for the fallback timer. The timer is counting down since start of the module, until an ID is detected for the first time.
- Parameters:
autoCaptureNoIdTimeout- Auto capture fallback timeout value.
-
setCaptureAttempts
final IdScan.Builder setCaptureAttempts(Integer captureAttempts)
Sets the ID capture attempts.
- Parameters:
captureAttempts- Capture attempts value.
-
setStreamAudioEnabled
final IdScan.Builder setStreamAudioEnabled(Boolean enabled)
Enables or disables audio during streaming of the IdScan module.
- Parameters:
enabled- If true, audio is streamed along with video during ID scan.
-
setDigitalIdEnabled
final IdScan.Builder setDigitalIdEnabled(Boolean enabled)
Enables or disables onboarding with Digital ID in form of PDF file.
- Parameters:
enabled- If true, users will be able to upload Digital IDs.
-
-
-
-