-
public interface CaptureView.CameraSettingsSettings of the camera. The interface provides methods for tuning camera resolution. Also, if for some reason you have to hide embedded flashlight button and implement a custom one, you can use the methods of this interface to manage the flashlight.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumCaptureView.CameraSettings.ResolutionThe resolution of the images captured from the camera preview.
-
Method Summary
Modifier and Type Method Description abstract UnitsetResolution(CaptureView.CameraSettings.Resolution resolution)Sets camera resolution. abstract CaptureView.CameraSettings.ResolutiongetResolution()Returns the camera resolution. abstract BooleanhasFlashlight()Determines if the device has a flashlight abstract BooleanisFlashlightEnabled()Defines if the flashlight in torch mode is currently enabled. abstract UnitsetFlashlightEnabled(Boolean isEnabled)Enables or disables the device flashlight torch mode. -
-
Method Detail
-
setResolution
@MainThread() abstract Unit setResolution(CaptureView.CameraSettings.Resolution resolution)
Sets camera resolution. Default value is Resolution.FULL_HD.
- Parameters:
resolution- The value of camera resolution
-
getResolution
@MainThread() abstract CaptureView.CameraSettings.Resolution getResolution()
Returns the camera resolution.
-
hasFlashlight
@MainThread() abstract Boolean hasFlashlight()
Determines if the device has a flashlight
-
isFlashlightEnabled
@MainThread() abstract Boolean isFlashlightEnabled()
Defines if the flashlight in torch mode is currently enabled.
-
setFlashlightEnabled
@MainThread() abstract Unit setFlashlightEnabled(Boolean isEnabled)
Enables or disables the device flashlight torch mode.
- Parameters:
isEnabled- This parameter defines if the flashlight in torch mode should be enabled.
-
-
-
-