what-the-bank/sources/io/flutter/plugins/camera/features/exposurelock/ExposureLockFeature.java

44 lines
1.4 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package io.flutter.plugins.camera.features.exposurelock;
import android.hardware.camera2.CaptureRequest;
import io.flutter.plugins.camera.CameraProperties;
import io.flutter.plugins.camera.features.CameraFeature;
/* loaded from: classes6.dex */
public class ExposureLockFeature extends CameraFeature<ExposureMode> {
private ExposureMode currentSetting;
@Override // io.flutter.plugins.camera.features.CameraFeature
public boolean checkIsSupported() {
return true;
}
public ExposureLockFeature(CameraProperties cameraProperties) {
super(cameraProperties);
this.currentSetting = ExposureMode.auto;
}
@Override // io.flutter.plugins.camera.features.CameraFeature
public void updateBuilder(CaptureRequest.Builder builder) {
if (checkIsSupported()) {
builder.set(CaptureRequest.CONTROL_AE_LOCK, Boolean.valueOf(this.currentSetting == ExposureMode.locked));
}
}
@Override // io.flutter.plugins.camera.features.CameraFeature
public void setValue(ExposureMode exposureMode) {
this.currentSetting = exposureMode;
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // io.flutter.plugins.camera.features.CameraFeature
public ExposureMode getValue() {
return this.currentSetting;
}
@Override // io.flutter.plugins.camera.features.CameraFeature
public String getDebugName() {
return "ExposureLockFeature";
}
}