public class DoublePingFlowController extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DoublePingFlowController.Builder
Builder class for the double ping flow controller.
|
static interface |
DoublePingFlowController.DoublePingCallback
Callback interface for the flow events.
|
Modifier and Type | Method and Description |
---|---|
void |
doAutoFocus(float motionX,
float motionY,
int viewWidth,
int viewHeight)
Triggers the camera's auto-focus on the provided touch location.
|
View |
getPreviewView()
Returns the View that was created by the manager and on which the camera preview is drawn.
|
void |
pauseProcessing()
Pauses the ScanTrust frame processing.
|
void |
releaseCamera()
Releases the underlying camera object, stops the preview and stops the ScanTrust frame processing.
|
void |
resetFlow()
Resets the state of the flow to only reading the content of the codes.
|
void |
restartProcessing()
Restarts the ScanTrust frame processing.
|
void |
setCameraTorchModeOnOff(boolean turnOn)
Turns the torch on or off depending on the value of turnOn.
|
void |
setCodeParams(String message,
int blurThreshBias,
int activationStatus,
int trainingStatus)
Set the scanning parameters of the a code.
|
void |
startCamera()
Starts the underlying camera object, its preview and starts the ScanTrust frame processing.
|
public void resetFlow()
public void restartProcessing()
public void pauseProcessing()
public void startCamera()
public void releaseCamera()
public void setCameraTorchModeOnOff(boolean turnOn)
turnOn
- true to turn the torch onpublic void doAutoFocus(float motionX, float motionY, int viewWidth, int viewHeight)
View.OnTouchListener#onTouch(View, MotionEvent)
The view's dimensions are required to map the touch to the sensor's space.motionX
- The x touch locationmotionY
- The y touch locationviewWidth
- The view's widthviewHeight
- The views' heightpublic View getPreviewView()
public void setCodeParams(String message, int blurThreshBias, int activationStatus, int trainingStatus)
message
- The code contentblurThreshBias
- The bias to be applied to the blur threshold.activationStatus
- The activation state of the codetrainingStatus
- The training status of the code