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