LowLightBoost
public static class 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 fields |
|
|---|---|
static @NonNull LowLightBoost |
Public methods |
|
|---|---|
static final @NonNull LowLightBoostClient |
@RequiresApi(value = 30)Creates a new instance of |
Public fields
Public methods
getClient
@RequiresApi(value = 30)
public static final @NonNull LowLightBoostClient getClient(@NonNull Context context)
Creates a new instance of LowLightBoostClient.