Class ScannerConfig.Builder
- java.lang.Object
-
- com.regula.documentreader.api.config.ScannerConfig.Builder
-
- Enclosing class:
- ScannerConfig
public static final class ScannerConfig.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(OnlineProcessingConfig onlineProcessingConfig)
New ScannerConfig.Builder instance Use for Online processing withOnlineMode.MANUAL
Builder(java.lang.String scenario)
New ScannerConfig.Builder instanceBuilder(java.lang.String scenario, OnlineProcessingConfig onlineProcessingConfig)
New ScannerConfig.Builder instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScannerConfig
build()
ScannerConfig.Builder
setCameraId(int cameraId)
Set ID of the camera to be used for video capturingScannerConfig.Builder
setExtPortrait(Bitmap extPortrait)
Portrait photo from an external sourceScannerConfig.Builder
setLivePortrait(Bitmap livePortrait)
Live portrait photoScannerConfig.Builder
setOnlineProcessingConfig(OnlineProcessingConfig onlineProcessingConfig)
Set online processing configuration
-
-
-
Constructor Detail
-
Builder
public Builder(java.lang.String scenario)
New ScannerConfig.Builder instance- Parameters:
scenario
-Scenario.Scenarios
-
Builder
public Builder(java.lang.String scenario, OnlineProcessingConfig onlineProcessingConfig)
New ScannerConfig.Builder instance- Parameters:
scenario
-Scenario.Scenarios
onlineProcessingConfig
-OnlineProcessingConfig
-
Builder
public Builder(OnlineProcessingConfig onlineProcessingConfig)
New ScannerConfig.Builder instance Use for Online processing withOnlineMode.MANUAL
- Parameters:
onlineProcessingConfig
-OnlineProcessingConfig
-
-
Method Detail
-
setOnlineProcessingConfig
public ScannerConfig.Builder setOnlineProcessingConfig(OnlineProcessingConfig onlineProcessingConfig)
Set online processing configuration- Parameters:
onlineProcessingConfig
-OnlineProcessingConfig
-
setCameraId
public ScannerConfig.Builder setCameraId(int cameraId)
Set ID of the camera to be used for video capturing
-
setLivePortrait
public ScannerConfig.Builder setLivePortrait(Bitmap livePortrait)
Live portrait photo- Parameters:
livePortrait
- base64 photo- Returns:
- builder
-
setExtPortrait
public ScannerConfig.Builder setExtPortrait(Bitmap extPortrait)
Portrait photo from an external source- Parameters:
extPortrait
- base64 photo- Returns:
- builder
-
build
public ScannerConfig build()
- Returns:
- a new ScannerConfig
-
-