Class CaptureFeedback
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class CaptureFeedback implements Parcelable
Configuration of the feedback shown after snapping a page.
-
-
Field Summary
Fields Modifier and Type Field Description private Boolean
cameraBlinkEnabled
private PageSnapFeedbackMode
snapFeedbackMode
-
Constructor Summary
Constructors Constructor Description CaptureFeedback(Map<String, Object> source)
CaptureFeedback(JSONObject json)
CaptureFeedback(Boolean cameraBlinkEnabled, PageSnapFeedbackMode snapFeedbackMode)
-
Method Summary
Modifier and Type Method Description final Boolean
getCameraBlinkEnabled()
Whether the camera preview should blink or not after snapping a page. final Unit
setCameraBlinkEnabled(Boolean cameraBlinkEnabled)
Whether the camera preview should blink or not after snapping a page. final PageSnapFeedbackMode
getSnapFeedbackMode()
The type of animation to display after snapping a page. final Unit
setSnapFeedbackMode(PageSnapFeedbackMode snapFeedbackMode)
The type of animation to display after snapping a page. final JSONObject
toJson()
final static CaptureFeedback
default()
-
-
Constructor Detail
-
CaptureFeedback
CaptureFeedback(JSONObject json)
-
CaptureFeedback
CaptureFeedback(Boolean cameraBlinkEnabled, PageSnapFeedbackMode snapFeedbackMode)
-
-
Method Detail
-
getCameraBlinkEnabled
final Boolean getCameraBlinkEnabled()
Whether the camera preview should blink or not after snapping a page. Default is true
-
setCameraBlinkEnabled
final Unit setCameraBlinkEnabled(Boolean cameraBlinkEnabled)
Whether the camera preview should blink or not after snapping a page. Default is true
-
getSnapFeedbackMode
final PageSnapFeedbackMode getSnapFeedbackMode()
The type of animation to display after snapping a page.
-
setSnapFeedbackMode
final Unit setSnapFeedbackMode(PageSnapFeedbackMode snapFeedbackMode)
The type of animation to display after snapping a page.
-
toJson
final JSONObject toJson()
-
default
final static CaptureFeedback default()
-
-
-
-