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.Builderpublic DoublePingFlowController.Builder isQa(boolean qa)
qa - true if the context of the scan is the printing quality assuranceDoublePingFlowController.Builderpublic DoublePingFlowController.Builder startZoomedOut(boolean zoom)
Default: true --> zoomed out
zoom - true to start zoomed outDoublePingFlowController.Builderpublic DoublePingFlowController.Builder setDesiredZoom(float desiredZoom)
desiredZoom - the desired zoomed-in level. Acceptable values: [1-4]DoublePingFlowController.Builderpublic DoublePingFlowController build() throws CameraAccessException
DoublePingFlowControllerCameraAccessException - if something went wrong with the camera setup.