CameraView

constructor(context: Context)

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(context: Context, argViewFinderType: CameraView.ViewFinderType, @DrawableRes argBorderDrawable: Int = NO_BORDER)

Constructor when created programmatically, assigning borderDrawable and viewFinderType values. The UI components are added and constraints are set up accordingly.


constructor(context: Context, attrs: AttributeSet?)

Constructor used when inflated from XML, initialize borderDrawable and viewFinderType from attrs and add the constraints accordingly.


constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int)

Constructor used when inflated from XML, initialize borderDrawable and viewFinderType from attrs and add the constraints accordingly.


constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int, defStyleRes: Int)

Constructor used when inflated from XML, initialize borderDrawable and viewFinderType from attrs and add the constraints accordingly.