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 classBarcodePolygonsStaticView.BarcodePolygonStyleClass that declares appearance of polygon
public interfaceBarcodePolygonsStaticView.BarcodeItemViewFactoryFactory interface for the view under the polygon
public interfaceBarcodePolygonsStaticView.BarcodeItemViewBinderInterface for the binding a BarcodeItem to a view created by BarcodeItemViewFactory
public interfaceBarcodePolygonsStaticView.BarcodeItemViewPositionHandlerInterface for the correcting position a BarcodeItem view created by BarcodeItemViewFactory to a barcode polygon path
public interfaceBarcodePolygonsStaticView.BarcodeAcceptanceDelegateInterface for a BarcodeItem to be marked as highlighted or not. Should be fast (called in onDraw)
public interfaceBarcodePolygonsStaticView.BarcodeAppearanceDelegateInterface for a BarcodeItem to decide the appearance of the given barcode polygon
-
Field Summary
Fields Modifier and Type Field Description private BarcodePolygonsStaticView.BarcodeAcceptanceDelegatebarcodeAcceptanceDelegateprivate BarcodePolygonsStaticView.BarcodeItemViewFactorybarcodeItemViewFactoryprivate BarcodePolygonsStaticView.BarcodeItemViewBinderbarcodeItemViewBinderprivate BarcodePolygonsStaticView.BarcodeItemViewPositionHandlerbarcodeItemViewPositionHandlerprivate BarcodePolygonsStaticView.BarcodeAppearanceDelegatebarcodeAppearanceDelegateprivate final FrameHandlerframeHandlerprivate final BarcodeCounterFrameHandler.ResultHandlerbarcodesResultHandler
-
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()
-
-
-
-