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

FieldDescription
CREATOR

Methods

MethodDescription
describeContents()
equals(Object arg0)
getBarCodeDecodeType()
getBarcodeReaderSettings()internal
getBarcodeScannerFragmentSettings()
getBarcodeSettings()The main BarCode decoding parameters.
getClass()
getQualitySettings()Not Implemented
hashCode()
importSettingsFromXml(InputStream barcodeReaderExportedToXml)Imports BarCode properties from the xml-stream specified and applies them to the current BarCodeReader instance.
notify()
notifyAll()
setBarCodeReadType(BaseDecodeType type)Sets decode type for recognition.
setBarCodeReadType(SingleDecodeType[] barcodeTypes)Sets SingleDecodeType type array for recognition.
setBarcodeRecognitionResultHandler(BarcodeRecognitionResultsHandler recognitionResultsHandler)Sets custom implementation of OnRecognitionFinishedListener Custom OnRecognitionFinishedListener will called after finish of recognition process in BarcodeScannerFragment
setQualitySettings(QualitySettings qualitySettings)QualitySettings allows to configure recognition quality and speed manually.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)
writeToParcel(Parcel dest, int flags)

CREATOR

public static final Parcelable.Creator<BarcodeRecognitionSettings> CREATOR

describeContents()

public int describeContents()

Returns: int

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.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:

ParameterTypeDescription
barcodeReaderExportedToXmljava.io.InputStreamThe 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:

ParameterTypeDescription
typeBaseDecodeTypeThe 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:

ParameterTypeDescription
barcodeTypesSingleDecodeType[]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:

ParameterTypeDescription
recognitionResultsHandlercom.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:

ParameterTypeDescription
qualitySettingsQualitySettingsto 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:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int

writeToParcel(Parcel dest, int flags)

public void writeToParcel(Parcel dest, int flags)

Parameters:

ParameterTypeDescription
destandroid.os.Parcel
flagsint