Class BarcodePolygonsStaticView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback
,android.view.KeyEvent.Callback
,android.view.ViewManager
,android.view.ViewParent
,android.view.accessibility.AccessibilityEventSource
,io.scanbot.sdk.ui.BasePolygonView
public final class BarcodePolygonsStaticView extends FrameLayout implements BasePolygonView
Draws polygons reacting on FrameHandler result
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
BarcodePolygonsStaticView.BarcodePolygonStyle
Class that declares appearance of polygon
public interface
BarcodePolygonsStaticView.BarcodeItemViewFactory
Factory interface for the view under the polygon
public interface
BarcodePolygonsStaticView.BarcodeItemViewBinder
Interface for the binding a BarcodeItem to a view created by BarcodeItemViewFactory
public interface
BarcodePolygonsStaticView.BarcodeItemViewPositionHandler
Interface for the correcting position a BarcodeItem view created by BarcodeItemViewFactory to a barcode polygon path
public interface
BarcodePolygonsStaticView.BarcodeAcceptanceDelegate
Interface for a BarcodeItem to be marked as highlighted or not. Should be fast (called in onDraw)
public interface
BarcodePolygonsStaticView.BarcodeAppearanceDelegate
Interface for a BarcodeItem to decide the appearance of the given barcode polygon
-
Field Summary
Fields Modifier and Type Field Description private BarcodePolygonsStaticView.BarcodeAcceptanceDelegate
barcodeAcceptanceDelegate
private BarcodePolygonsStaticView.BarcodeItemViewFactory
barcodeItemViewFactory
private BarcodePolygonsStaticView.BarcodeItemViewBinder
barcodeItemViewBinder
private BarcodePolygonsStaticView.BarcodeItemViewPositionHandler
barcodeItemViewPositionHandler
private BarcodePolygonsStaticView.BarcodeAppearanceDelegate
barcodeAppearanceDelegate
private final FrameHandler
frameHandler
private final BarcodeCounterFrameHandler.ResultHandler
barcodesResultHandler
-
Constructor Summary
Constructors Constructor Description BarcodePolygonsStaticView(Context context)
BarcodePolygonsStaticView(Context context, AttributeSet attrs)
-
Method Summary
-
-
Constructor Detail
-
BarcodePolygonsStaticView
BarcodePolygonsStaticView(Context context)
-
BarcodePolygonsStaticView
BarcodePolygonsStaticView(Context context, AttributeSet attrs)
-
-
Method Detail
-
getBarcodeAcceptanceDelegate
final BarcodePolygonsStaticView.BarcodeAcceptanceDelegate getBarcodeAcceptanceDelegate()
Allows to set a delegate to decide if the given barcode should be highlighted
-
setBarcodeAcceptanceDelegate
final Unit setBarcodeAcceptanceDelegate(BarcodePolygonsStaticView.BarcodeAcceptanceDelegate barcodeAcceptanceDelegate)
Allows to set a delegate to decide if the given barcode should be highlighted
-
getBarcodeItemViewFactory
final BarcodePolygonsStaticView.BarcodeItemViewFactory getBarcodeItemViewFactory()
Factory for the viewsPool appearing on the bottom of the barcode (or null if the view is not needed)
-
setBarcodeItemViewFactory
final Unit setBarcodeItemViewFactory(BarcodePolygonsStaticView.BarcodeItemViewFactory barcodeItemViewFactory)
Factory for the viewsPool appearing on the bottom of the barcode (or null if the view is not needed)
-
getBarcodeItemViewBinder
final BarcodePolygonsStaticView.BarcodeItemViewBinder getBarcodeItemViewBinder()
Callback for the binding a BarcodeItem to a view created by BarcodeItemViewFactory
-
setBarcodeItemViewBinder
final Unit setBarcodeItemViewBinder(BarcodePolygonsStaticView.BarcodeItemViewBinder barcodeItemViewBinder)
Callback for the binding a BarcodeItem to a view created by BarcodeItemViewFactory
-
getBarcodeItemViewPositionHandler
final BarcodePolygonsStaticView.BarcodeItemViewPositionHandler getBarcodeItemViewPositionHandler()
-
setBarcodeItemViewPositionHandler
final Unit setBarcodeItemViewPositionHandler(BarcodePolygonsStaticView.BarcodeItemViewPositionHandler barcodeItemViewPositionHandler)
-
getBarcodeAppearanceDelegate
final BarcodePolygonsStaticView.BarcodeAppearanceDelegate getBarcodeAppearanceDelegate()
Allows to set a style delegate to the view
-
setBarcodeAppearanceDelegate
final Unit setBarcodeAppearanceDelegate(BarcodePolygonsStaticView.BarcodeAppearanceDelegate barcodeAppearanceDelegate)
Allows to set a style delegate to the view
-
getFrameHandler
final FrameHandler getFrameHandler()
Attach this frame handler to IScanbotCameraView
-
getBarcodesResultHandler
final BarcodeCounterFrameHandler.ResultHandler getBarcodesResultHandler()
Add this result handler to your BarcodeCounterFrameHandler
-
clearBarcodes
final Unit clearBarcodes()
-
-
-
-