Kofax Mobile SDK API Reference
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CaptureExperience Class Referenceabstract

This class is a base class for the DocumentCaptureExperience and CheckCaptureExperience, PassportCaptureExperience and FixedAspectRatioCaptureExperience. More...

Inheritance diagram for CaptureExperience:
StabilityDelayListener LevelnessListener AutoFocusResultListener ImageCapturedListener DocumentBaseCaptureExperience CheckCaptureExperience DocumentCaptureExperience FixedAspectRatioCaptureExperience PassportCaptureExperience

Public Member Functions

void addOnImageCapturedListener (ImageCapturedListener listener)
 
void removeOnImageCapturedListener (ImageCapturedListener listener)
 
void setVibrationEnabled (boolean enable)
 
boolean isVibrationEnabled ()
 
void takePicture ()
 
void takePictureContinually ()
 
void stopCapture ()
 
void onImageCaptured (ImageCapturedEvent event)
 Invoked when the camera captures an image. More...
 
void onAutoFocus (AutoFocusResultEvent event)
 Invoked when the camera completes focusing. More...
 
void onLevelness (LevelnessEvent event)
 Invoked when the orientation of the device changes. More...
 
void onStabilityDelay (StabilityDelayEvent event)
 Invoked when stability levels change. More...
 
void destroy ()
 

Protected Member Functions

void invokeImageCapturedListeners (ImageCapturedEvent event)
 
boolean captureCriteriaMetInternal (CaptureExperienceData data)
 

Protected Attributes

CaptureExperienceData _captureExperienceData = new CaptureExperienceData()
 
final Object _lock
 
boolean _sdkCaptureRequested
 
boolean _continuousCapture
 
ImageCaptureView _imageCaptureView
 
final Handler _uiHandler = new Handler(Looper.getMainLooper())
 
float _aspectRatio
 
Set< ImageCapturedListener_imageCapturedListeners = new LinkedHashSet<ImageCapturedListener>()
 
Vibrator _vibrator
 
boolean _vibrationEnabled = false
 

Detailed Description

This class is a base class for the DocumentCaptureExperience and CheckCaptureExperience, PassportCaptureExperience and FixedAspectRatioCaptureExperience.

This class is responsible for capturing documents once the given criteria are met

Member Function Documentation

void addOnImageCapturedListener ( ImageCapturedListener  listener)

Invoked after the camera captures an image and when all capture messages were shown. To allow for every message to be played, this method should be used to set an ImageCapturedListener instead of the method on the ImageCaptureView class.

Parameters
listenerThe image captured listener
See also
ImageCapturedListener
boolean captureCriteriaMetInternal ( CaptureExperienceData  data)
protected
void destroy ( )

Detaches from the ImageCaptureView and destroys this experience.

void invokeImageCapturedListeners ( ImageCapturedEvent  event)
protected
boolean isVibrationEnabled ( )
Returns
Whether vibration availability during capturing
void onAutoFocus ( AutoFocusResultEvent  event)

Invoked when the camera completes focusing.

Implements AutoFocusResultListener.

void onImageCaptured ( ImageCapturedEvent  event)

Invoked when the camera captures an image.

Implements ImageCapturedListener.

void onLevelness ( LevelnessEvent  event)

Invoked when the orientation of the device changes.

Implements LevelnessListener.

void onStabilityDelay ( StabilityDelayEvent  event)

Invoked when stability levels change.

Implements StabilityDelayListener.

void removeOnImageCapturedListener ( ImageCapturedListener  listener)

Remove ImageCapturedListener.

Parameters
listenerThe image captured listener
See also
ImageCapturedListener
addOnImageCapturedListener(ImageCapturedListener)
void setVibrationEnabled ( boolean  enable)

Method to manage vibration availability during capturing.

Parameters
enableWhether to vibrate during capture
void stopCapture ( )

This is the counterpart to takePicture() and takePictureContinually(). Calling this method will stop automatic image capture when the criteria are satisfied.

See also
takePicture()
takePictureContinually()
void takePicture ( )

Calling this method will start the process of monitoring the capture criteria that was configured to determine when a document that meets all the criteria can be captured. The static frame will change its color to green to indicate that a document will be captured soon.

void takePictureContinually ( )

Calling this method will start the continuous capture of images. Images will automatically be captured when criteria are satisfied.

Member Data Documentation

float _aspectRatio
protected
CaptureExperienceData _captureExperienceData = new CaptureExperienceData()
protected
boolean _continuousCapture
protected
Set<ImageCapturedListener> _imageCapturedListeners = new LinkedHashSet<ImageCapturedListener>()
protected
ImageCaptureView _imageCaptureView
protected
final Object _lock
protected
boolean _sdkCaptureRequested
protected
final Handler _uiHandler = new Handler(Looper.getMainLooper())
protected
boolean _vibrationEnabled = false
protected
Vibrator _vibrator
protected

The documentation for this class was generated from the following file:
Untitled Document © 2018 Kofax, Inc. All rights reserved. Use is subject to license terms.