BarcodeRecognitionSettings
Inheritance: java.lang.Object
All Implemented Interfaces: android.os.Parcelable
public class BarcodeRecognitionSettings implements Parcelable
BarcodeRecognitionSettings contains the API to customization BarcodeRecognitionFragment and Barcode recognition settings, adding of RecognitionResultsHandler Must be called before starting of recognition process in BarcodeScannerFragment. //TODO discuss method applyChanges or importSettings
Fields
Field | Description |
---|---|
CREATOR |
Methods
CREATOR
public static final Parcelable.Creator<BarcodeRecognitionSettings> CREATOR
describeContents()
public int describeContents()
Returns: int
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getBarCodeDecodeType()
public BaseDecodeType getBarCodeDecodeType()
Returns: BaseDecodeType
getBarcodeReaderSettings()
public InputStream getBarcodeReaderSettings()
internal
Returns: java.io.InputStream -
getBarcodeScannerFragmentSettings()
public BarcodeScannerFragmentSettings getBarcodeScannerFragmentSettings()
Returns: com.aspose.barcode.component.barcodescanner.BarcodeScannerFragmentSettings
getBarcodeSettings()
public BarcodeSettings getBarcodeSettings()
The main BarCode decoding parameters. Contains parameters which make influence on recognized data.
Returns: BarcodeSettings - The main BarCode decoding parameters
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getQualitySettings()
public QualitySettings getQualitySettings()
Not Implemented
Returns: QualitySettings - quality settings
hashCode()
public native int hashCode()
Returns: int
importSettingsFromXml(InputStream barcodeReaderExportedToXml)
public void importSettingsFromXml(InputStream barcodeReaderExportedToXml)
Imports BarCode properties from the xml-stream specified and applies them to the current BarCodeReader instance.
Parameters:
Parameter | Type | Description |
---|---|---|
barcodeReaderExportedToXml | java.io.InputStream | The xml-stream for loading |
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setBarCodeReadType(BaseDecodeType type)
public void setBarCodeReadType(BaseDecodeType type)
Sets decode type for recognition. Must be called before ReadBarCodes() method.
Parameters:
Parameter | Type | Description |
---|---|---|
type | BaseDecodeType | The type of barcode to read. |
setBarCodeReadType(SingleDecodeType[] barcodeTypes)
public void setBarCodeReadType(SingleDecodeType[] barcodeTypes)
Sets SingleDecodeType type array for recognition. Must be called before starting of recognition process in BarcodeScannerFragment.
Parameters:
Parameter | Type | Description |
---|---|---|
barcodeTypes | SingleDecodeType[] | The SingleDecodeType type array to read. |
setBarcodeRecognitionResultHandler(BarcodeRecognitionResultsHandler recognitionResultsHandler)
public void setBarcodeRecognitionResultHandler(BarcodeRecognitionResultsHandler recognitionResultsHandler)
Sets custom implementation of OnRecognitionFinishedListener Custom OnRecognitionFinishedListener will called after finish of recognition process in BarcodeScannerFragment
Parameters:
Parameter | Type | Description |
---|---|---|
recognitionResultsHandler | com.aspose.barcode.component.barcodescanner.BarcodeRecognitionResultsHandler |
setQualitySettings(QualitySettings qualitySettings)
public void setQualitySettings(QualitySettings qualitySettings)
QualitySettings allows to configure recognition quality and speed manually. You can quickly set up QualitySettings by embedded presets: HighPerformance, NormalQuality, HighQuality, MaxBarCodes or you can manually configure separate options. Default value of QualitySettings is NormalQuality.
Parameters:
Parameter | Type | Description |
---|---|---|
qualitySettings | QualitySettings | to configure recognition quality and speed. |
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 |