Kofax Mobile SDK API Reference
|
Protected Member Functions | |
void | initBase (ImageCaptureView view, SelfieCaptureExperienceCriteriaHolder criteria) |
Protected Attributes | |
Context | _ctx |
This class renders an enhanced visual experience on an ImageCaptureView and provides feedback to guide the user to take a clear, legible photo of a selfie. Criteria can be specified by using a setCaptureCriteria method.
A photo will be taken automatically once the specified criteria are met, and takePicture() has been called.
SelfieBaseCaptureExperience | ( | ImageCaptureView | view, |
SelfieCaptureExperienceCriteriaHolder | criteria | ||
) |
Note: This is best used on a view that occupies the maximum possible area of its parent view.
view | The view this will be drawn onto |
criteria | The criteria used to determine when a photo should be taken. |
final 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.
listener | The image captured listener |
void destroy | ( | ) |
Detaches from the ImageCaptureView and destroys this experience.
CaptureMessage getBlinkMessage | ( | ) |
Returns the attributes of the instruction message that is displayed to guide the user to blink his eyes after the face aligned properly in the target frame This will be displayed after the user aligned his face properly in the target frame.
Default configuration:
SelfieCaptureExperienceCriteriaHolder getCaptureCriteria | ( | ) |
Returns the criteria used to determine if a photo should be taken.
CaptureMessage getCapturedMessage | ( | ) |
Returns the attributes of the message that will be displayed when a selfie is captured.
Default configuration:
int getFrameColor | ( | ) |
Returns the target frame border color.
CaptureMessage getHoldSteadyMessage | ( | ) |
Returns the attributes of the message that is displayed on the capture control to direct the user to hold the device steady so that a clear focused image can be captured. This message is shown when all the constraints are met and ready to capture.
Default configuration:
int getOuterViewFinderColor | ( | ) |
Returns the target frame outer view color.
double getPaddingPercent | ( | ) |
The percentage of the total width and height used as padding Valid values are [0-50].
CaptureMessage getUserInstructionMessage | ( | ) |
Returns the attributes of the instruction message that is displayed on the capture control while the user is trying to capture. This message will be displayed to instruct the user to fit his face in the frame. This may happen in particular when the user is holding a device too far away from the face or when the face is out of the target frame.
Default configuration:
|
protected |
boolean isVibrationEnabled | ( | ) |
final void removeOnImageCapturedListener | ( | ImageCapturedListener | listener | ) |
Remove ImageCapturedListener.
listener | The image captured listener |
void setBlinkMessage | ( | CaptureMessage | blinkMessage | ) |
A property to configure the attributes of the instruction message that is displayed to blink his eyes after the user properly aligned his face in the target frame.
blinkMessage | : CaptureMessage |
void setCapturedMessage | ( | CaptureMessage | capturedMessage | ) |
This message will be displayed when the selfie is captured.
capturedMessage | : CaptureMessage |
void setFrameColor | ( | int | colorCode | ) |
The target frame border color can be set here.
colorCode | The target frame border color. |
void setHoldSteadyMessage | ( | CaptureMessage | holdSteadyMessage | ) |
A property to configure the attributes of the message that is displayed on the capture control to direct the user to hold the device steady so that a clear focused image can be captured. This message is shown when all the constraints are met and ready to capture.
holdSteadyMessage | : CaptureMessage |
void setOuterViewFinderColor | ( | int | colorCode | ) |
The target frame outer view color can be set here.
colorCode | the target frame outer view color. |
void setUserInstructionMessage | ( | CaptureMessage | userInstructionMessage | ) |
A property to configure the attributes of the instruction message that is displayed on the capture control while the user is trying to capture.
userInstructionMessage | : CaptureMessage |
void setVibrationEnabled | ( | boolean | enable | ) |
Method to manage vibration availability during capturing.
enable | Whether to vibrate during capture |
void stopCapture | ( | ) |
This is the counterpart to takePicture(). Calling this method will stop automatic image capture when the criteria are satisfied.
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.
|
protected |