QrScannerView

public final class QrScannerView extends View

QrScannerView is a custom view that displays a qr scanner view

Constructors

Link copied to clipboard

Properties

Link copied to clipboard

Animator to show and hide center line

Link copied to clipboard

Offset to draw corner line

Link copied to clipboard

Boolean to check if center line is visible

Link copied to clipboard
private final Paint mBackgroundPaint

Paints to draw qr scanner view

Link copied to clipboard
private final Paint mBorderPaint

Paint to draw border

Link copied to clipboard
private final Paint mCornerPaint

Paint to draw corner line

Link copied to clipboard
private final Path mPath

Path to draw qr scanner view

Link copied to clipboard
private final Paint mStrokePaint

Paint to draw center line

Link copied to clipboard
private final Path mStrokePath

Path to draw center line

Link copied to clipboard
private Rect roi

Region of interest

Functions

Link copied to clipboard
private final ValueAnimator getAnimator()

Animator to show and hide center line

Link copied to clipboard
private final Float getCornerOffset()

Offset to draw corner line

Link copied to clipboard
private final Paint getMBackgroundPaint()

Paints to draw qr scanner view

Link copied to clipboard
private final Paint getMBorderPaint()

Paint to draw border

Link copied to clipboard
private final Paint getMCornerPaint()

Paint to draw corner line

Link copied to clipboard
private final Path getMPath()

Path to draw qr scanner view

Link copied to clipboard
private final Paint getMStrokePaint()

Paint to draw center line

Link copied to clipboard
private final Path getMStrokePath()

Path to draw center line

Link copied to clipboard
private final Rect getRoi()

Region of interest

Link copied to clipboard
private final Unit initPaints()

init paints

Link copied to clipboard
private final Boolean isStrokeVisible()

Boolean to check if center line is visible

Link copied to clipboard
protected Unit onDraw(Canvas canvas)
Link copied to clipboard
private final Unit setAnimator(ValueAnimator animator)

Animator to show and hide center line

Link copied to clipboard
private final Unit setCornerOffset(Float cornerOffset)

Offset to draw corner line

Link copied to clipboard
private final Unit setRoi(Rect roi)

Region of interest

Link copied to clipboard
private final Unit setStrokeVisible(Boolean isStrokeVisible)

Boolean to check if center line is visible