BarcodePolygonsView

Draws polygons reacting on FrameHandler result

Constructors

Link copied to clipboard
constructor(context: Context)
constructor(context: Context, attrs: AttributeSet?)

Types

Link copied to clipboard

Interface for a BarcodeItem to decide the appearance of the given barcode polygon

Link copied to clipboard

Internal class that declares barcode state on the view.

Link copied to clipboard

Interface for a BarcodeItem to be marked as highlighted or not. Should be fast (called in onDraw)

Link copied to clipboard

Interface for the binding a BarcodeItem to a view created by BarcodeItemViewFactory

Link copied to clipboard

Factory interface for the view under the polygon

Link copied to clipboard

Interface for the correcting position a BarcodeItem view created by BarcodeItemViewFactory to a barcode polygon path

Link copied to clipboard
data class BarcodePolygonStyle(var drawPolygon: Boolean, val useFill: Boolean, val useFillHighlighted: Boolean, val cornerRadius: Float, val strokeWidth: Float, val strokeColor: Int, val strokeHighlightedColor: Int, val fillColor: Int, val fillHighlightedColor: Int, val shouldDrawShadows: Boolean)

Class that declares appearance of polygon

Link copied to clipboard

Implement this method to override string value in default barcode ar view

Link copied to clipboard
data class BarcodeTextViewStyle(val textColor: Int, val textHighlightedColor: Int, val textContainerColor: Int, val textContainerHighlightedColor: Int, val textFormat: BarcodeOverlayTextFormat, val shouldDrawShadows: Boolean)

Class that declares appearance of default text view

Link copied to clipboard
object Companion
Link copied to clipboard

A callback interface for the View under the polygon

Properties

Link copied to clipboard
var appearanceJob: <Error class: unknown class>?
Link copied to clipboard

Allows to set a style delegate to the view

Link copied to clipboard

Allows to set a delegate to decide if the given barcode should be highlighted

Link copied to clipboard
Link copied to clipboard

Factory for the views appearing on the bottom of the barcode (or null if the view is not needed)

Link copied to clipboard
var cancelJob: <Error class: unknown class>?
Link copied to clipboard

Allows to set a click listener to the view under the polygon created by barcodeItemViewFactory

Link copied to clipboard

Functions

Link copied to clipboard
open override fun onTouchEvent(event: MotionEvent?): Boolean
Link copied to clipboard

Reset the state of the view