public class ReadOnlyCameraManager extends Object
ScanTrustCameraManager
but does not perform the image and frame processing required for the ScanTrust authentication.
It is limited to checking the ownership of the code based on its content.
When only the QR code format is chosen, it is capable of dealing with multiple (QR) codes in the same frame.Modifier and Type | Class and Description |
---|---|
static class |
ReadOnlyCameraManager.Builder
Builder class for the read-only camera manager
|
static interface |
ReadOnlyCameraManager.ManagerCallback
Callback interface for the camera 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 |
manageCamResult(Message message) |
void |
pauseProcessing()
Pauses the ScanTrust frame processing.
|
void |
releaseCamera()
Releases the underlying camera object, stops the preview and stops the ScanTrust frame processing.
|
void |
restartProcessing()
Restarts the ScanTrust frame processing.
|
void |
setCameraTorchModeOnOff(boolean turnOn)
Turns the torch on or off depending on the value of turnOn.
|
void |
startCamera()
Starts the underlying camera object, its preview and starts the ScanTrust frame processing.
|
public void restartProcessing()
public void pauseProcessing()
public View getPreviewView()
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 void manageCamResult(Message message)