Class Functionality
java.lang.Object
com.regula.documentreader.api.params.Functionality
Functional-related params
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf set, video during processing of the document will be recorded.edit()Create a new Editor for these preferences, through which you can make modifications to the data in the functionality and atomically commit those changes back to the Functionality object.voidvoidfromJson(JSONObject object) name of the Ble device (torch/rfid)Use this setting, to override default cropping frame on camera activity provided by scenarioCamera preview image height in pixelsintAllows to set camera API used during document video capture.Camera preview image width in pixelsintUse this setting to change document capture behavior SeeCaptureModeenumA list of devices that must not use the camera2 APIfloatIf set, multiple page processing will stop when processed pages number is equal to the valueintdefines orientation of activities, seeDocReaderOrientationfor more informationUse the parameter to set the time limit (in seconds) for the RFID chip reading, beyond which it does not continue regardless of its result.longdelay in seconds after document was detectedlongdelay in seconds after camera was startedbooleanuse this flag if you want to close rfid activity after complete reading rfid you will never back to parent activity, but you will get completion callbackfloatThe current camera zoom level on camera preview during document processing (in a range from 1x to 10x)booleanIndicates if the API module for working with Bluetooth Device (torch/rfid) is presentbooleanAllows you to disable all validations of having a torch in case Android returns that it's not available, but it can be used when checks are skipped Danger Please use this setting at your own risk as the end app may crash.booleanbooleanIf set, the metadata will be displayed over the camera preview during a document processing, namely the perspective angle valuebooleanIf set,DocumentReader.startNewPage()will not be called automatically, which allows to add custom logic between page processingbooleanif set, as soon as document is located during video mode, picture wil be taken and processed as single frame used for devices with poor-quality video previewbooleanif set, camera swapping button will be displayed on CaptureActivitybooleanif set, "capture" button will be displayed on video preview, allowing to take picture and process it as single framebooleanDeprecated.booleanif set, skip button will be visible on video capture and chip reading activitiesbooleanIf set, button will be displayed in case of multiple page processing, allowing to skip further page(s) processingbooleanif set, torch button will be visible on video capture activitybooleanbooleanIf set, frames received from camera while auto focus is happening won't be processedbooleanIf set, torch (if available) will turn on immediately on camera preview startbooleanidentify work with Mobile Authenticatorbooleanif set, DocumentReader will receive data from Motion Sensor and pause scanning when device is movingbooleanIf set, user is allowed to adjust a zoom level using the pinch gesture on camera preview during document processing (in a range from 1x to 10x)toJson()JSONObject
-
Constructor Details
-
Functionality
public Functionality()
-
-
Method Details
-
isUseAuthenticator
public boolean isUseAuthenticator()identify work with Mobile Authenticator -
isPictureOnBoundsReady
public boolean isPictureOnBoundsReady()if set, as soon as document is located during video mode, picture wil be taken and processed as single frame used for devices with poor-quality video preview -
getCameraFrame
Use this setting, to override default cropping frame on camera activity provided by scenario -
getOrientation
public int getOrientation()defines orientation of activities, seeDocReaderOrientationfor more information -
isShowTorchButton
public boolean isShowTorchButton()if set, torch button will be visible on video capture activity -
isShowTorchButtonOldUi
public boolean isShowTorchButtonOldUi() -
isShowCloseButton
public boolean isShowCloseButton()if set, skip button will be visible on video capture and chip reading activities -
isVideoCaptureMotionControl
public boolean isVideoCaptureMotionControl()if set, DocumentReader will receive data from Motion Sensor and pause scanning when device is moving -
isShowCaptureButton
public boolean isShowCaptureButton()if set, "capture" button will be displayed on video preview, allowing to take picture and process it as single frame -
isShowChangeFrameButton
Deprecated.if set, frame expanding button will be shown on video capture screen. Not used for new UI -
getShowCaptureButtonDelayFromDetect
public long getShowCaptureButtonDelayFromDetect()delay in seconds after document was detected -
getShowCaptureButtonDelayFromStart
public long getShowCaptureButtonDelayFromStart()delay in seconds after camera was started -
isDatabaseAutoupdate
public boolean isDatabaseAutoupdate() -
isShowSkipNextPageButton
public boolean isShowSkipNextPageButton()If set, button will be displayed in case of multiple page processing, allowing to skip further page(s) processing -
isSkipFocusingFrames
public boolean isSkipFocusingFrames()If set, frames received from camera while auto focus is happening won't be processed -
isBTDeviceApiPresent
public boolean isBTDeviceApiPresent()Indicates if the API module for working with Bluetooth Device (torch/rfid) is present -
getBtDeviceName
name of the Ble device (torch/rfid) -
isShowCameraSwitchButton
public boolean isShowCameraSwitchButton()if set, camera swapping button will be displayed on CaptureActivity -
getStartDocReaderForResult
public boolean getStartDocReaderForResult()use this flag if you want to close rfid activity after complete reading rfid you will never back to parent activity, but you will get completion callback -
isDisplayMetaData
public boolean isDisplayMetaData()If set, the metadata will be displayed over the camera preview during a document processing, namely the perspective angle value- Returns:
- flag value
-
getCaptureMode
public int getCaptureMode()Use this setting to change document capture behavior SeeCaptureModeenum -
getCameraWidth
Camera preview image width in pixels- Returns:
- pixels
-
getCameraHeight
Camera preview image height in pixels- Returns:
- pixels
-
isZoomEnabled
public boolean isZoomEnabled()If set, user is allowed to adjust a zoom level using the pinch gesture on camera preview during document processing (in a range from 1x to 10x)- Returns:
- flag value
-
getZoomFactor
public float getZoomFactor()The current camera zoom level on camera preview during document processing (in a range from 1x to 10x)- Returns:
- zoom level
-
getRfidTimeout
Use the parameter to set the time limit (in seconds) for the RFID chip reading, beyond which it does not continue regardless of its result.- Returns:
- timeout in seconds
-
getExposure
public float getExposure() -
getCameraMode
public int getCameraMode()Allows to set camera API used during document video capture. Auto by default- Returns:
- current camera API
-
getExcludedCamera2Models
A list of devices that must not use the camera2 API- Returns:
- list of String
-
isCameraTorchCheckDisabled
public boolean isCameraTorchCheckDisabled()Allows you to disable all validations of having a torch in case Android returns that it's not available, but it can be used when checks are skipped Danger Please use this setting at your own risk as the end app may crash.- Returns:
- flag value
-
doRecordProcessingVideo
public boolean doRecordProcessingVideo()If set, video during processing of the document will be recorded. This can be used later for debugging and troubleshooting -
isManualMultipageMode
public boolean isManualMultipageMode()If set,DocumentReader.startNewPage()will not be called automatically, which allows to add custom logic between page processing- Returns:
- flag value
-
getForcePagesCount
If set, multiple page processing will stop when processed pages number is equal to the value- Returns:
- number of pages
-
isTorchTurnedOn
public boolean isTorchTurnedOn()If set, torch (if available) will turn on immediately on camera preview start- Returns:
- true, if torch will be turned on
-
getVideoRecordingSizeDownscaleFactor
-
toJsonObject
public JSONObject toJsonObject() -
toJson
-
fromJson
-
fromJson
public void fromJson(JSONObject object) -
edit
Create a new Editor for these preferences, through which you can make modifications to the data in the functionality and atomically commit those changes back to the Functionality object. Note that you must callFunctionality.FunctionalityEditor.apply()to have any changes you perform in the Editor actually show up in the Functionality.- Returns:
Functionality.FunctionalityEditorinstance
-