Kofax Mobile SDK API Reference
|
Protected Member Functions | |
void | checkLicense () |
Protected Member Functions inherited from ImageCaptureView | |
void | checkLicense () |
void | onLayout (boolean changed, int l, int t, int r, int b) |
void | onDetachedFromWindow () |
void | onAttachedToWindow () |
Additional Inherited Members | |
Static Public Attributes inherited from ImageCaptureView | |
static final int | DEFAULT_LUMINANCE_THRESHOLD = 100 |
static final int | DEFAULT_TORCH_DELAY = 3 |
Protected Attributes inherited from ImageCaptureView | |
IBus | _bus |
This view provides a capture experience optimized for SDK license capture in QR code format. The view provides visual guidance to the end-user to maximize the chances of correctly decoding an SDK license. Once the view has been asked to read an SDK license, it will search continuously until one is found.
LicenseCaptureView | ( | Context | context | ) |
LicenseCaptureView | ( | Context | context, |
AttributeSet | set | ||
) |
LicenseCaptureView | ( | Context | context, |
AttributeSet | set, | ||
int | defStyle | ||
) |
void addLicenseFoundEventListener | ( | LicenseFoundListener | listener | ) |
Adds the specified SDK license search listener to receive license found events from this view.
|
protected |
int getOuterViewFinderColor | ( | ) |
Returns the color used for the outer view finder background.
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 during periods where other guidance is not available to correct a user. This may happen in particular when the user is holding a device too far away from a document, preventing detection.
The following CaptureMessage property methods are not supported for this message: getMessageIcons() / setMessageIcons(Bitmap[]).
Default configuration:
double getViewfinderPaddingPercent | ( | ) |
Returns padding percent required between the viewfinder and camera preview frame.
void onPreviewFrame | ( | PreviewImageReadyBusEvent | evt | ) |
void readLicense | ( | ) |
This call returns immediately and starts asynchronously searching for an SDK license. The search will continue indefinitely until an SDK license is found. Once an SDK license is positively read, the LicenseFoundEvent is raised. If license string is valid it will be set into SDK for licensing.
void removeLicenseFoundEventListener | ( | LicenseFoundListener | listener | ) |
Removes the specified SDK license search listener from this view.
void setOuterViewFinderColor | ( | int | colorCode | ) |
Specifies the color that will be used for the outer view finder background. The default color is translucent grey.
void setUserInstructionMessage | ( | CaptureMessage | userInstructionsMessage | ) |
A property to configure the attributes of the instruction message that is displayed on the capture control while the user is trying to capture.
userInstructionsMessage | : CaptureMessage |
void setViewfinderPaddingPercent | ( | double | paddingPercent | ) |
This value determines how much percentage the viewfinder needs to be positioned inside the camera preview frame. Valid values are [0-50]. Default Value is 10.
paddingPercent | double in the range [0-50]. |