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' to use this feature. final IdScan.BuildersetShowIdTypeChooser(Boolean showIdTypeChooser)Controls whether the document selection (ID type chooser) screen is shown. final IdScan.BuildersetIdType(IdScan.IdType idType)Sets the document type to be used for the ID capture flow. 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)Controls whether the Review Screen is shown after using Auto Capture final IdScan.BuildersetShowRetakeScreenForManualCapture(Boolean showRetakeScreenForManualCapture)Controls whether the Review Screen is shown after using Manual Capture 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 the Digital ID option, in the form of a PDF file, on the Document chooser screen. final IdScan.BuildersetGoogleWalletIdEnabled(Boolean enabled)Enables or disables the Google Wallet option on the Document chooser screen. 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)
- Since:
Deprecated in 5.34.0
-
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' 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' to use this feature.
- Parameters:
enableBackShownAsFrontCheck- If true, will perform check.- Returns:
-
setShowIdTypeChooser
final IdScan.Builder setShowIdTypeChooser(Boolean showIdTypeChooser)
Controls whether the document selection (ID type chooser) screen is shown.
If set to
true, the SDK will display a document chooser screen, allowing the end user to select from the enabled document types.If set to
false, the SDK will skip the chooser screen and proceed directly with the document type defined via IdScan.Builder.setIdType(IdScan.IdType).When using Dashboard (backend) configuration, the chooser will display only the document types enabled in the Dashboard. When using local configuration, the chooser will display ID and Passport by default, and optionally Digital ID (or any other available document type) if enabled.
If both
setShowIdTypeChooser(true)andsetIdType(...)are provided, the chooser takes precedence and the explicitly set ID type is ignored.
-
setIdType
final IdScan.Builder setIdType(IdScan.IdType idType)
Sets the document type to be used for the ID capture flow.
When the document chooser is not shown, this value determines which document type will be used for the capture process.
If the chooser is disabled and no document type is explicitly set (or
nullis provided), the default document type is IdScan.IdType.ID.When using Dashboard (backend) configuration, the available document types are controlled by the Dashboard settings. In that case, this method defines the document type only if the chooser is disabled and the selected type is enabled in the configuration.
Note: This setting is ignored if IdScan.Builder.setShowIdTypeChooser(true) is set.
- Since:
-
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 = "Deprecated to improve clarity. Manual and auto capture now have separate methods: [setShowRetakeScreenForManualCapture] and [setShowRetakeScreenForAutoCapture].")@JvmOverloads() final IdScan.Builder setShowRetakeScreen(Boolean showForManualCapture, Boolean showForAutoCapture)
-
setShowRetakeScreen
@Deprecated(message = "Deprecated to improve clarity. Manual and auto capture now have separate methods: [setShowRetakeScreenForManualCapture] and [setShowRetakeScreenForAutoCapture].")@JvmOverloads() final IdScan.Builder setShowRetakeScreen(Boolean showForManualCapture)
-
setShowRetakeScreenForAutoCapture
final IdScan.Builder setShowRetakeScreenForAutoCapture(Boolean showRetakeScreenForAutoCapture)
Controls whether the Review Screen is shown after using Auto Capture
- Parameters:
showRetakeScreenForAutoCapture- Shows (true) or hides (false) retake screen after auto capture mode was used.- Returns:
- Since:
<a href="https://developer.incode.com/docs/changelog#/version-5290-kiosk-login-135-nfc-135-qr-face-login-123-core-light-264---2024-jul-19">5.29.0</a>
-
setShowRetakeScreenForManualCapture
final IdScan.Builder setShowRetakeScreenForManualCapture(Boolean showRetakeScreenForManualCapture)
Controls whether the Review Screen is shown after using Manual Capture
- Parameters:
showRetakeScreenForManualCapture- Shows (true) or hides (false) retake screen after manual capture mode was used.- Returns:
- Since:
<a href="https://developer.incode.com/docs/changelog#/version-5290-kiosk-login-135-nfc-135-qr-face-login-123-core-light-264---2024-jul-19">5.29.0</a>
-
setEnableRotationOnRetakeScreen
@Deprecated(message = "No longer supported in the new UI") final IdScan.Builder setEnableRotationOnRetakeScreen(Boolean enable)
- Since:
Deprecated in 5.34.0
-
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.
-
setShowIdOverlay
@Deprecated(message = "No longer supported in the new UI") final IdScan.Builder setShowIdOverlay(Boolean isVisible)
Enables ID overlay.
-
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' to use this feature.
<p> **Dashboard equivalent:** the "Enable ID recording" checkbox under ID Capture configuration sets this same flag (`enableIdRecording` in the server response). Despite the dashboard label, it controls **frame streaming**, not session recording. For session recording (which has no dashboard control), see [com.incode.welcome_sdk.FlowConfig.Builder.configureScreenRecording]. <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.- Returns:
-
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.- Returns:
-
setCaptureAttempts
final IdScan.Builder setCaptureAttempts(Integer captureAttempts)
Sets the ID capture attempts.
- Parameters:
captureAttempts- Capture attempts value.- Returns:
-
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.- Returns:
-
setDigitalIdEnabled
final IdScan.Builder setDigitalIdEnabled(Boolean enabled)
Enables or disables the Digital ID option, in the form of a PDF file, on the Document chooser screen.
- Parameters:
enabled- If true, the Document chooser screen will show Digital ID alongside the other document options.- Returns:
-
setGoogleWalletIdEnabled
final IdScan.Builder setGoogleWalletIdEnabled(Boolean enabled)
Enables or disables the Google Wallet option on the Document chooser screen.
When enabled, make sure to:
include the optional
walletsdependency in your app (requires API 28+),configure the Google Wallet environment when initializing the SDK using IncodeWelcome.Builder.setGoogleWalletEnvironment.
- Parameters:
enabled- If true, the Document chooser screen will show Google Wallet alongside the other document options.- Returns:
-
-
-
-