setCustomRequest

Return

true of false depend if success or fail to do it.

Set custom values to the camera. Need to be called after start or it will return false. Build and apply are done by the library automatically.

For example, if you want disable autoExposure:

camera.setCustomRequest { builder -> builder.set(CaptureRequest.CONTROL_AE_MODE, CaptureRequest.CONTROL_AE_MODE_OFF) }