LowLightBoost

object LowLightBoost


Low Light Boost API.

Low Light Boost automatically adjusts the camera surface brightness to adapt to low light scenes. The capability can apply to the preview stream, still captures, and video recordings.

To use this API, you must get an instance of com.google.android.gms.cameralowlight.LowLightBoostClient and then check that the device supports the feature.

Example:

val client = LowLightBoost.getClient(context)
if (client.isDeviceSupported(context).await() && client.isCameraSupported(cameraId).await()) {
// Low Light Boost is supported on this device and camera.
// Install the module if necessary.
// Create a session and start capturing.
}

Summary

Public functions

LowLightBoostClient
@RequiresApi(value = 30)
getClient(context: Context)

Creates a new instance of LowLightBoostClient.

Public functions

getClient

@RequiresApi(value = 30)
fun getClient(context: Context): LowLightBoostClient

Creates a new instance of LowLightBoostClient.

Parameters
context: Context

the context that is using this client