title: How to implement increase/decrease or manual change White Balance (Temperature and Tint) in CameraX API using kotlin?
body: <p><em>I have developed brightness or exposure which increases and decreases successfully on the slider, Now I have to develop same for white balance according to temperature increase and decrease the temperature with the help of slider NOTE:- brightness and white balance are different things</em></p>
  <pre><code> @SuppressLint(&quot;UnsafeOptInUsageError&quot;)
      private fun Slider.setup(camera: Camera) {
          camera.cameraInfo.exposureState.let {
              value = it.exposureCompensationIndex.toFloat()
              valueFrom = it.exposureCompensationRange.lower.toFloat()
              valueTo = it.exposureCompensationRange.upper.toFloat()
              addOnChangeListener { _, value, _ -&gt;
                  camera.cameraControl.setExposureCompensationIndex(value.roundToInt())
              }
              setLabelFormatter { value: Float -&gt;
                  &quot;%.2f&quot;.format((value * it.exposureCompensationStep.toFloat()))
              }
          }
      }
  </code></pre>