CameraView

fun CameraView(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.


fun CameraView(context: Context, argViewFinderType: CameraView.ViewFinderType, @DrawableRes argBorderDrawable: Int)

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


fun CameraView(context: Context, attrs: AttributeSet?)

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


fun CameraView(context: Context, attrs: AttributeSet?, defStyleAttr: Int)

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


fun CameraView(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.