Package com.journeyapps.barcodescanner
Class DecoderThread
- java.lang.Object
-
- com.journeyapps.barcodescanner.DecoderThread
-
public class DecoderThread extends Object
-
-
Constructor Summary
Constructors Constructor Description DecoderThread(CameraInstance cameraInstance, Decoder decoder, Handler resultHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.google.zxing.LuminanceSourcecreateSource(SourceData sourceData)RectgetCropRect()DecodergetDecoder()voidsetCropRect(Rect cropRect)voidsetDecoder(Decoder decoder)voidstart()Start decoding.voidstop()Stop decoding.
-
-
-
Constructor Detail
-
DecoderThread
public DecoderThread(CameraInstance cameraInstance, Decoder decoder, Handler resultHandler)
-
-
Method Detail
-
getDecoder
public Decoder getDecoder()
-
setDecoder
public void setDecoder(Decoder decoder)
-
getCropRect
public Rect getCropRect()
-
setCropRect
public void setCropRect(Rect cropRect)
-
start
public void start()
Start decoding. This must be called from the UI thread.
-
stop
public void stop()
Stop decoding. This must be called from the UI thread.
-
createSource
protected com.google.zxing.LuminanceSource createSource(SourceData sourceData)
-
-