CameraDetailsBuilder constructor

CameraDetailsBuilder(
  1. CameraDetails data
)

Creates a ValueBuilder view model to change a CameraDetails.

Implementation

CameraDetailsBuilder(CameraDetails data) :
	resolutionHeight = NumberBuilder(data.resolutionHeight, min: 0, max: 300),
	resolutionWidth = NumberBuilder(data.resolutionWidth, min: 0, max: 300),
	quality = NumberBuilder(data.quality, min: 0, max: 100),
	fps = NumberBuilder(data.fps, min: 0, max: 60),
	name = data.name,
	status = CameraStatus.CAMERA_ENABLED,
    autofocus = data.autofocus;