Closed berhab-zakarya closed 1 year ago
Usage examples:
CameraConfig cameraConfig = new CameraConfig() {
@NonNull
@Override
public CameraSelector options(@NonNull CameraSelector.Builder builder) {
builder.requireLensFacing(CameraSelector.LENS_FACING_FRONT);
return super.options(builder);
}
};
getCameraScan().setCameraConfig(cameraConfig);
CameraSelector cameraSelector = CameraSelector.DEFAULT_FRONT_CAMERA; CameraConfig cameraConfig = new CameraConfig(); cameraConfig.options(CameraSelector.Builder.fromSelector(cameraSelector)); getCameraScan().setCameraConfig(cameraConfig)