Package io.scanbot.sdk.ui.camera
Class ScanbotCameraContainerView
-
- All Implemented Interfaces:
-
android.graphics.drawable.Drawable.Callback
,android.view.KeyEvent.Callback
,android.view.ViewManager
,android.view.ViewParent
,android.view.accessibility.AccessibilityEventSource
,io.scanbot.sdk.ui.camera.IScanbotCameraView
public class ScanbotCameraContainerView extends ScanbotCameraWrapper
Wrapper around ScanbotCameraView and ScanbotCameraXView, which allows to control which of them should be used.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
ScanbotCameraContainerView.CameraType
-
Field Summary
Fields Modifier and Type Field Description private Long
delayAfterFocusCompleteMs
private ScanbotCameraContainerView.CameraType
cameraType
-
Constructor Summary
Constructors Constructor Description ScanbotCameraContainerView(Context context, AttributeSet attrs)
-
Method Summary
Modifier and Type Method Description Long
getDelayAfterFocusCompleteMs()
Unit
setDelayAfterFocusCompleteMs(Long delayAfterFocusCompleteMs)
final ScanbotCameraContainerView.CameraType
getCameraType()
final Unit
setCameraType(ScanbotCameraContainerView.CameraType cameraType)
<T extends FrameHandler> T
getAttachedFrameHandler(Class<T> clazz)
Check whether there is same class of FrameHandler attached to the view return object of the same class if exists otherwise null Unit
setPhysicalZoom(Float zoomRatio)
Allows to set camera physical zoom value, if the value out of range of real camera min and max values it chooses min or max value. Unit
setCameraOpenCallback(CameraOpenCallback cameraOpenCallback)
Callback which will be invoked when camera will be opened -
-
Constructor Detail
-
ScanbotCameraContainerView
ScanbotCameraContainerView(Context context, AttributeSet attrs)
-
-
Method Detail
-
getDelayAfterFocusCompleteMs
Long getDelayAfterFocusCompleteMs()
-
setDelayAfterFocusCompleteMs
Unit setDelayAfterFocusCompleteMs(Long delayAfterFocusCompleteMs)
-
getCameraType
final ScanbotCameraContainerView.CameraType getCameraType()
-
setCameraType
final Unit setCameraType(ScanbotCameraContainerView.CameraType cameraType)
-
getAttachedFrameHandler
<T extends FrameHandler> T getAttachedFrameHandler(Class<T> clazz)
Check whether there is same class of FrameHandler attached to the view return object of the same class if exists otherwise null
-
setPhysicalZoom
Unit setPhysicalZoom(Float zoomRatio)
Allows to set camera physical zoom value, if the value out of range of real camera min and max values it chooses min or max value. Example: camera physical zoom range 1f..5f if we set 6f it will set 5f. Default value is 1f.
- Parameters:
zoomRatio
- Target zoom level
-
setCameraOpenCallback
Unit setCameraOpenCallback(CameraOpenCallback cameraOpenCallback)
Callback which will be invoked when camera will be opened
- Parameters:
cameraOpenCallback
- callback
-
-
-
-