public static class ThreeStepsFlowController.Builder extends Object
Constructor and Description |
---|
Builder(Activity activity,
ThreeStepsFlowController.ThreeStepsCallback callback) |
Modifier and Type | Method and Description |
---|---|
ThreeStepsFlowController |
build()
Builds a "three steps" controller.
|
ThreeStepsFlowController.Builder |
cropType(CropType ct)
Defines the type of crop to perform on the scan(fingerprint or QR code)
|
ThreeStepsFlowController.Builder |
isQa(boolean qa)
Defines if the manager is used in a QA app or not.
|
ThreeStepsFlowController.Builder |
setDesiredZoom(float desiredZoom)
Don't use unless you know what you are doing.
Defines the desire zoomed-in level. |
ThreeStepsFlowController.Builder |
startZoomedOut(boolean zoom)
Defines if the camera starts zoomed out or not.
|
public Builder(Activity activity, ThreeStepsFlowController.ThreeStepsCallback callback)
public ThreeStepsFlowController.Builder cropType(CropType ct)
Default is CropType.FP
.
ct
- the crop typeThreeStepsFlowController.Builder
public ThreeStepsFlowController.Builder isQa(boolean qa)
qa
- true if the context of the scan is the printing quality assuranceThreeStepsFlowController.Builder
public ThreeStepsFlowController.Builder startZoomedOut(boolean zoom)
Default: true --> zoomed out
zoom
- true to start zoomed outThreeStepsFlowController.Builder
public ThreeStepsFlowController.Builder setDesiredZoom(float desiredZoom)
desiredZoom
- the desired zoomed-in level. Acceptable values: [1-4]ThreeStepsFlowController.Builder
public ThreeStepsFlowController build() throws CameraAccessException
ThreeStepsFlowController
CameraAccessException
- if something went wrong with the camera setup.