CameraView
A view used for camera, lays out the required subviews and exposes components for CameraAdapter and ScanFlow.
Has the following styleable parameters to configure in xml R.styleable.StripeCameraView_stripeViewFinderType - a enum to decide the type of ViewFinderType, which dictates the aspect ratio of viewFinderWindowView. R.styleable.StripeCameraView_stripeBorderDrawable - an optional reference for viewFinderBorderView's drawable resource.
Constructors
Constructor when created programmatically. Leaving borderDrawable and viewFinderType as default value, add the UI components without adding any constraints. The caller of this constructor is responsible for adding constraint of subviews.
Constructor when created programmatically, assigning borderDrawable and viewFinderType values. The UI components are added and constraints are set up accordingly.
Constructor used when inflated from XML, initialize borderDrawable and viewFinderType from attrs and add the constraints accordingly.
Constructor used when inflated from XML, initialize borderDrawable and viewFinderType from attrs and add the constraints accordingly.
Constructor used when inflated from XML, initialize borderDrawable and viewFinderType from attrs and add the constraints accordingly.
Types
The type of viewfinder, decides if viewFinderBackgroundView should be drawn and the aspect ratio of viewFinderWindowView
Properties
a FrameLayout to display the preview frame of camera feed, has the same size of the CameraView.
an optional ViewFinderBackground to draw background and reveals a center viewFinder on previewFrame, has the same size of the CameraView.
an optional ImageView to draw the border of viewFinderWindowView, exposed for applying animations.
Functions
Get a rect from a view.
Determine the size of a View.