Kofax Mobile SDK API Reference
Classes | Public Member Functions | List of all members
CaptureMessage Class Reference

Classes

enum  KUIMessageOrientation
 

Public Member Functions

 CaptureMessage ()
 
int getTextColor ()
 
void setTextColor (int textColor)
 
int getBackgroundColor ()
 
void setBackgroundColor (int backgroundColor)
 
Drawable getBackground ()
 
void setBackground (Drawable background)
 
int getPosX ()
 
void setPosX (int posX)
 
int getPosY ()
 
void setPosY (int posY)
 
int getWidth ()
 
void setWidth (int width)
 
int getHeight ()
 
void setHeight (int height)
 
int getTextSize ()
 
void setTextSize (int textSize)
 
Typeface getTypeface ()
 
void setTypeface (Typeface typeface)
 
String getMessage ()
 
void setMessage (String message)
 Sets the text of this message. More...
 
boolean getVisibility ()
 
void setVisibility (boolean visibility)
 
void setOrientation (KUIMessageOrientation orientation)
 
KUIMessageOrientation getOrientation ()
 
void setMessageIcons (Bitmap[] messageIcons)
 
Bitmap[] getMessageIcons ()
 

Detailed Description

This class is responsible for rendering the messages on the Image Capture View. It allows the attributes of the messages to be configured and hence enhance the visual feedback to the user

Constructor & Destructor Documentation

Member Function Documentation

Drawable getBackground ( )
Returns
Drawable The background Drawable behind the displayed text
See also
setBackground(Drawable)
int getBackgroundColor ( )
Returns
int The background Color of the message
See also
setBackgroundColor(int)
int getHeight ( )
Returns
int The height of the message box text
See also
setHeight(int)
String getMessage ( )
Returns
String The message
See also
setMessage(String)
Bitmap [] getMessageIcons ( )
Returns
Bitmap[] The array of images used to display an animation
See also
setMessageIcons
KUIMessageOrientation getOrientation ( )
Returns
KUIMessageOrientation The orientation of the message displayed
See also
setOrientation(KUIMessageOrientation)
int getPosX ( )
Returns
int The x position of the message
See also
setPosX(int)
int getPosY ( )
Returns
int The Y position of the message
See also
setPosY(int)
int getTextColor ( )
Returns
int The Color that the message text will be rendered with
See also
setTextColor(int)
int getTextSize ( )
Returns
int The text font size
See also
setTextSize(int)
Typeface getTypeface ( )
Returns
Typeface The text typeface
See also
setTypeface(Typeface)
boolean getVisibility ( )
Returns
boolean The message visibility
See also
setVisibility(boolean)
int getWidth ( )
Returns
int The width of the message box text
See also
setWidth(int)
void setBackground ( Drawable  background)
Parameters
backgroundThe background Drawable behind the displayed text
void setBackgroundColor ( int  backgroundColor)

All color values are valid. The default background is transparent.

Parameters
backgroundColorThe background Color of the message
void setHeight ( int  height)

Text will be contained within this boundary, and any set background color will completely cover this area. The default (-1) causes the message text height to be determined as the SDK sees fit.

Parameters
heightThe height of the message box text
void setMessage ( String  message)

Sets the text of this message.

The default value is null (no text).

void setMessageIcons ( Bitmap[]  messageIcons)

Specifies an array of images used to display an animation in additional to the text message. The animation is a repeating sequence of images. By default, this is an empty array and no animation will be displayed.

Parameters
messageIconsThe array of images used to display an animation
void setOrientation ( KUIMessageOrientation  orientation)

Once the orientation is set for messages, they stay in that mode even if the device rotates. By default, UserInstructionMessage, NoDocumentFoundMessage, and ZoomInMessage default to landscape. PageOrientationMessage defaults to portrait.

Parameters
orientationThe orientation of the message displayed.
void setPosX ( int  posX)

The message object will be displayed on top of an Image Capture View with the left of the message being located at this coordinate. Changes in the size of the capture control will usually require updating the position of the message as well. The default value (-1) causes the message to be positioned as the SDK sees fit.

Parameters
posXThe x position of the message
void setPosY ( int  posY)

The message object will be displayed on top of an Image Capture View with the top of the message being located at this coordinate. Changes in the size of the capture control will usually require updating the position of the message as well. The default value (-1) causes the message to be positioned as the SDK sees fit.

Parameters
posYThe Y position of the message
void setTextColor ( int  textColor)

All color values are valid. The default color is white.

Parameters
textColorThe Color that the message text will be rendered with
void setTextSize ( int  textSize)

The default is -1, which causes the message text font size to be determined as the SDK sees fit.

Parameters
textSizeThe text font size
void setTypeface ( Typeface  typeface)

The default is null, which causes the message text typeface to be determined as the SDK sees fit.

Parameters
typefaceThe text typeface
void setVisibility ( boolean  visibility)

A value of true will show the message, if there is nothing else to prevent it from appearing. A value of false will prevent the message from appearing. The default value is true. Some objects that use messages, like the capture experience objects, will automatically manage and update this state.

Parameters
visibilityThe message visibility
void setWidth ( int  width)

Text will be contained within this boundary, and any set background color will completely fill this area. The default (-1) causes the message text width to be determined as the SDK sees fit.

Parameters
widthThe width of the message box

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.