Kofax Mobile SDK API Reference
Public Member Functions | Protected Member Functions | List of all members
LicenseCaptureView Class Reference
Inheritance diagram for LicenseCaptureView:
ImageCaptureView

Public Member Functions

 LicenseCaptureView (Context context)
 
 LicenseCaptureView (Context context, AttributeSet set)
 
 LicenseCaptureView (Context context, AttributeSet set, int defStyle)
 
void addLicenseFoundEventListener (LicenseFoundListener listener)
 
void removeLicenseFoundEventListener (LicenseFoundListener listener)
 
double getViewfinderPaddingPercent ()
 
void setViewfinderPaddingPercent (double paddingPercent)
 
int getOuterViewFinderColor ()
 
void setOuterViewFinderColor (int colorCode)
 
CaptureMessage getUserInstructionMessage ()
 
void setUserInstructionMessage (CaptureMessage userInstructionsMessage)
 
void readLicense ()
 
void onPreviewFrame (PreviewImageReadyBusEvent evt)
 
- Public Member Functions inherited from ImageCaptureView
 ImageCaptureView (Context context)
 
 ImageCaptureView (Context context, AttributeSet set)
 
 ImageCaptureView (Context context, AttributeSet set, int defStyle)
 
final int getImagePreviewWidth ()
 
final int getImagePreviewHeight ()
 
ViewGroup getViewGroup ()
 
final Flash getFlash ()
 
final void setFlash (Flash flash)
 
final boolean isFlashSupported (Flash flash)
 
final GpsUsageLimits getGpsUsage ()
 
final void setGpsUsage (GpsUsageLimits limits)
 
final void setCameraType (CameraType cameraType)
 
final void setImageResolution (Size resolution)
 
final List< SizegetAllowableImageResolutions ()
 
final List< Rect > getFocusAreas ()
 
final void setFocusAreas (List< Rect > focusAreas) throws KmcRuntimeException
 
final int getMaxFocusAreas ()
 
final boolean getUseVideoFrame ()
 
final void setUseVideoFrame (boolean useVideo)
 
final int getDeviceDeclinationPitch ()
 
final void setDeviceDeclinationPitch (int angle)
 
final int getDeviceDeclinationRoll ()
 
final void setDeviceDeclinationRoll (int angle)
 
final int getLuminanceThreshold ()
 
final void setLuminanceThreshold (int luminanceThreshold)
 
final int getTorchDelay ()
 
final void setTorchDelay (int torchDelay)
 
final void muteAutoTorch ()
 
final void unmuteAutoTorch ()
 
final void forceTakePicture ()
 
final void forceTakePicture (boolean focusAgain)
 
final synchronized void sessionCreate ()
 
final synchronized void sessionDismiss ()
 
final void addOnAutoFocusResultListener (AutoFocusResultListener listener)
 
final void removeOnAutoFocusResultListener (AutoFocusResultListener listener)
 
final void addOnImageCapturedListener (ImageCapturedListener listener)
 
final void removeOnImageCapturedListener (ImageCapturedListener listener)
 
final void addStabilityDelayListener (StabilityDelayListener listener)
 
final void removeStabilityDelayListener (StabilityDelayListener listener)
 
final void addLevelnessListener (LevelnessListener listener)
 
final void removeLevelnessListener (LevelnessListener listener)
 
final void addCameraInitializationListener (CameraInitializationListener listener)
 
final void removeCameraInitializationListener (CameraInitializationListener listener)
 
final void addCameraInitializationFailedListener (CameraInitializationFailedListener listener)
 
final void removeCameraInitializationFailedListener (CameraInitializationFailedListener listener)
 
final void addPreviewCallbackListener (PreviewCallbackListener listener)
 
final void removePreviewCallbackListener (PreviewCallbackListener listener)
 
final void addTorchLuminanceListener (TorchLuminanceListener listener)
 
final void removeTorchLuminanceListener (TorchLuminanceListener listener)
 
void removeAllViews ()
 
void surfaceChanged (SurfaceHolder holder, int format, int width, int height)
 
void surfaceCreated (SurfaceHolder holder)
 
void surfaceDestroyed (SurfaceHolder holder)
 

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
 

Detailed Description

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.

Constructor & Destructor Documentation

LicenseCaptureView ( Context  context)
LicenseCaptureView ( Context  context,
AttributeSet  set 
)
LicenseCaptureView ( Context  context,
AttributeSet  set,
int  defStyle 
)

Member Function Documentation

void addLicenseFoundEventListener ( LicenseFoundListener  listener)

Adds the specified SDK license search listener to receive license found events from this view.

void checkLicense ( )
protected
int getOuterViewFinderColor ( )

Returns the color used for the outer view finder background.

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:

  • message: "Fill viewable area with license in QR Code format"
  • text color: white
  • background color: transparent
  • background drawable: not specified
  • text size: 18
  • typeface: not specified
  • orientation: CaptureMessage.KUIMessageOrientation#PORTRAIT
  • width and height: not specified
  • position: center
  • visibility: true
Returns
CaptureMessage
See also
CaptureMessage
double getViewfinderPaddingPercent ( )

Returns padding percent required between the viewfinder and camera preview frame.

Returns
A double in the range [0-50].
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.

Parameters
userInstructionsMessage: CaptureMessage
See also
getUserInstructionMessage()
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.

Parameters
paddingPercentdouble in the range [0-50].

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.