RecognitionAreaSettings
Inheritance: java.lang.Object
All Implemented Interfaces: android.os.Parcelable
public class RecognitionAreaSettings implements Parcelable
Fields
Field | Description |
---|---|
CREATOR | |
DEFAULT_1D_RECOGNITION_AREA_SETTINGS | |
DEFAULT_2D_RECOGNITION_AREA_SETTINGS |
Methods
CREATOR
public static final Parcelable.Creator<RecognitionAreaSettings> CREATOR
DEFAULT_1D_RECOGNITION_AREA_SETTINGS
public static final RecognitionAreaSettings DEFAULT_1D_RECOGNITION_AREA_SETTINGS
DEFAULT_2D_RECOGNITION_AREA_SETTINGS
public static final RecognitionAreaSettings DEFAULT_2D_RECOGNITION_AREA_SETTINGS
describeContents()
public int describeContents()
Returns: int
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getFrameColor()
public int getFrameColor()
Gets the paint color of barcode scanner frame
Returns: int -
getMaxAreaHeight()
public float getMaxAreaHeight()
Gets the recognition area max height
Returns: float - the recognition area max height
getMaxAreaWidth()
public float getMaxAreaWidth()
Gets the recognition area max width
Returns: float - the recognition area max width
getOneDAreaBarcodeLineStyle()
public BarcodeAreaLineStyle getOneDAreaBarcodeLineStyle()
Gets style of 1D BarcodeArea line
Returns: BarcodeAreaLineStyle - style of 1D BarcodeArea line
getOneDLineColor()
public int getOneDLineColor()
Gets the color of 1D recognition marker
Returns: int - the color of 1D recognition marker
getOneDLineWidth()
public float getOneDLineWidth()
Gets the width of 1D area border line
Returns: float - the width of 1D area border line
getRecognitionAreaColor()
public int getRecognitionAreaColor()
Gets the paint color of barcode recognition area
Returns: int -
getTopOffset()
public float getTopOffset()
Gets the recognition area offset from top of screen TODO in percents
Returns: float - the recognition area offset from top of screen
getTwoDAreaBarcodeLineStyle()
public BarcodeAreaLineStyle getTwoDAreaBarcodeLineStyle()
Gets style of 2D BarcodeArea line
Returns: BarcodeAreaLineStyle - style of 2D BarcodeArea line
getTwoDAreaCornerRadius()
public float getTwoDAreaCornerRadius()
Returns rounded corner radius
Returns: float - rounded corner radius
getTwoDAreaStyle()
public TwoDAreaStyle getTwoDAreaStyle()
Gets style of 2D BarcodeArea border
Returns: com.aspose.barcode.component.barcodescanner.recognitionareaview.TwoDAreaStyle - style of 2D BarcodeArea border
getTwoDLineColor()
public int getTwoDLineColor()
Gets the color of 2D recognition marker
Returns: int - the color of 1D recognition marker
getTwoDLineWidth()
public float getTwoDLineWidth()
Gets the width of 2D area border line
Returns: float - the width of 2D area border line
getWidthHeightAreaRatio()
public float getWidthHeightAreaRatio()
Gets ratio between width and height of the recognition area
Returns: float - ratio between width and height of the recognition area
hashCode()
public native int hashCode()
Returns: int
isRecognizeOnlyInRecognitionArea()
public boolean isRecognizeOnlyInRecognitionArea()
Returns: boolean - Visibility of the recognition area
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setFrameColor(int frameColor)
public void setFrameColor(int frameColor)
sets the paint color of barcode scanner frame
Parameters:
Parameter | Type | Description |
---|---|---|
frameColor | int |
setMaxAreaHeight(float maxAreaHeight)
public void setMaxAreaHeight(float maxAreaHeight)
Sets the recognition area max height
Parameters:
Parameter | Type | Description |
---|---|---|
maxAreaHeight | float | the recognition area max height |
setMaxAreaWidth(float maxAreaWidth)
public void setMaxAreaWidth(float maxAreaWidth)
Sets the recognition area max width
Parameters:
Parameter | Type | Description |
---|---|---|
maxAreaWidth | float | the recognition area max width |
setOneDAreaBarcodeLineStyle(BarcodeAreaLineStyle oneDAreaBarcodeLineStyle)
public void setOneDAreaBarcodeLineStyle(BarcodeAreaLineStyle oneDAreaBarcodeLineStyle)
Sets style of 1D BarcodeArea line
Parameters:
Parameter | Type | Description |
---|---|---|
oneDAreaBarcodeLineStyle | BarcodeAreaLineStyle | style of 1D BarcodeArea line |
setOneDLineColor(int oneDLineColor)
public void setOneDLineColor(int oneDLineColor)
Sets the color of 1D recognition marker
Parameters:
Parameter | Type | Description |
---|---|---|
oneDLineColor | int | the color of 1D recognition marker |
setOneDLineWidth(float oneDLineWidth)
public void setOneDLineWidth(float oneDLineWidth)
Sets the width of 1D area border line
Parameters:
Parameter | Type | Description |
---|---|---|
oneDLineWidth | float | the width of 1D area border line |
setRecognitionAreaColor(int recognitionAreaColor)
public void setRecognitionAreaColor(int recognitionAreaColor)
Sets the paint color of barcode recognition area
Parameters:
Parameter | Type | Description |
---|---|---|
recognitionAreaColor | int | color of barcode recognition area. If color will not transparent, barcode recognition area will not transparent |
setRecognizeOnlyInRecognitionArea(boolean recognizeOnlyInRecognitionArea)
public void setRecognizeOnlyInRecognitionArea(boolean recognizeOnlyInRecognitionArea)
Parameters:
Parameter | Type | Description |
---|---|---|
recognizeOnlyInRecognitionArea | boolean | Visibility of the recognition area |
setTopOffset(float topOffset)
public void setTopOffset(float topOffset)
Sets the recognition area offset from top of screen
Parameters:
Parameter | Type | Description |
---|---|---|
topOffset | float | the recognition area offset from top of screen |
setTwoDAreaBarcodeLineStyle(BarcodeAreaLineStyle twoDAreaBarcodeLineStyle)
public void setTwoDAreaBarcodeLineStyle(BarcodeAreaLineStyle twoDAreaBarcodeLineStyle)
Sets style of 2D BarcodeArea line
Parameters:
Parameter | Type | Description |
---|---|---|
twoDAreaBarcodeLineStyle | BarcodeAreaLineStyle | style of 2D BarcodeArea line |
setTwoDAreaCornerRadius(float twoDAreaCornerRadius)
public void setTwoDAreaCornerRadius(float twoDAreaCornerRadius)
Returns rounded corner radius
Parameters:
Parameter | Type | Description |
---|---|---|
twoDAreaCornerRadius | float | rounded corner radius |
setTwoDAreaStyle(TwoDAreaStyle twoDAreaStyle)
public void setTwoDAreaStyle(TwoDAreaStyle twoDAreaStyle)
Sets style of 2D BarcodeArea border
Parameters:
Parameter | Type | Description |
---|---|---|
twoDAreaStyle | com.aspose.barcode.component.barcodescanner.recognitionareaview.TwoDAreaStyle | style of 2D BarcodeArea border |
setTwoDLineColor(int twoDLineColor)
public void setTwoDLineColor(int twoDLineColor)
Sets the color of 1D recognition marker
Parameters:
Parameter | Type | Description |
---|---|---|
twoDLineColor | int | the color of 1D recognition marker |
setTwoDLineWidth(float twoDLineWidth)
public void setTwoDLineWidth(float twoDLineWidth)
Sets the width of 2D area border line
Parameters:
Parameter | Type | Description |
---|---|---|
twoDLineWidth | float | the width of 2D area border line |
setWidthHeightAreaRatio(float areaRatio)
public void setWidthHeightAreaRatio(float areaRatio)
Sets ratio between width and height of the recognition area
Parameters:
Parameter | Type | Description |
---|---|---|
areaRatio | float | ratio between width and height of the recognition area |
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |
writeToParcel(Parcel dest, int flags)
public void writeToParcel(Parcel dest, int flags)
Parameters:
Parameter | Type | Description |
---|---|---|
dest | android.os.Parcel | |
flags | int |