Class DocumentPolygonConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class DocumentPolygonConfiguration implements Parcelable
Configuration of the document contour detection polygon.
-
-
Field Summary
Fields Modifier and Type Field Description private UserGuidanceVisibilityvisibilityprivate PolygonStyledocumentOkprivate PolygonStyledocumentNotOkprivate PolygonStyleautoSnapProgress
-
Constructor Summary
Constructors Constructor Description DocumentPolygonConfiguration(Map<String, Object> source)DocumentPolygonConfiguration(JSONObject json)DocumentPolygonConfiguration(UserGuidanceVisibility visibility, PolygonStyle documentOk, PolygonStyle documentNotOk, PolygonStyle autoSnapProgress)
-
Method Summary
Modifier and Type Method Description final UserGuidanceVisibilitygetVisibility()Determines the visibility mode for the polygon. final UnitsetVisibility(UserGuidanceVisibility visibility)Determines the visibility mode for the polygon. final PolygonStylegetDocumentOk()Configuration of the polygon when the detected document status is 'OK'. final UnitsetDocumentOk(PolygonStyle documentOk)Configuration of the polygon when the detected document status is 'OK'. final PolygonStylegetDocumentNotOk()Configuration of the polygon when the detected document status is 'not OK'. final UnitsetDocumentNotOk(PolygonStyle documentNotOk)Configuration of the polygon when the detected document status is 'not OK'. final PolygonStylegetAutoSnapProgress()Configuration of the animated polygon when the document is being scanned for capturing in 'auto snapping mode'. final UnitsetAutoSnapProgress(PolygonStyle autoSnapProgress)Configuration of the animated polygon when the document is being scanned for capturing in 'auto snapping mode'. final JSONObjecttoJson(ToJsonConfiguration config)final DocumentPolygonConfigurationclone()final static DocumentPolygonConfigurationdefault()-
-
Constructor Detail
-
DocumentPolygonConfiguration
DocumentPolygonConfiguration(JSONObject json)
-
DocumentPolygonConfiguration
DocumentPolygonConfiguration(UserGuidanceVisibility visibility, PolygonStyle documentOk, PolygonStyle documentNotOk, PolygonStyle autoSnapProgress)
-
-
Method Detail
-
getVisibility
final UserGuidanceVisibility getVisibility()
Determines the visibility mode for the polygon.
Default is ENABLED
-
setVisibility
final Unit setVisibility(UserGuidanceVisibility visibility)
Determines the visibility mode for the polygon.
Default is ENABLED
-
getDocumentOk
final PolygonStyle getDocumentOk()
Configuration of the polygon when the detected document status is 'OK'.
-
setDocumentOk
final Unit setDocumentOk(PolygonStyle documentOk)
Configuration of the polygon when the detected document status is 'OK'.
-
getDocumentNotOk
final PolygonStyle getDocumentNotOk()
Configuration of the polygon when the detected document status is 'not OK'.
-
setDocumentNotOk
final Unit setDocumentNotOk(PolygonStyle documentNotOk)
Configuration of the polygon when the detected document status is 'not OK'.
-
getAutoSnapProgress
final PolygonStyle getAutoSnapProgress()
Configuration of the animated polygon when the document is being scanned for capturing in 'auto snapping mode'.
-
setAutoSnapProgress
final Unit setAutoSnapProgress(PolygonStyle autoSnapProgress)
Configuration of the animated polygon when the document is being scanned for capturing in 'auto snapping mode'.
-
toJson
final JSONObject toJson(ToJsonConfiguration config)
-
clone
final DocumentPolygonConfiguration clone()
-
default
final static DocumentPolygonConfiguration default()
-
-
-
-