Skip to content

Commit 0f0a1a4

Browse files
committed
expand kotlin doc
1 parent db59760 commit 0f0a1a4

File tree

1 file changed

+6
-1
lines changed
  • data-capture-ready-to-use-ui-example/app/src/main/java/io/scanbot/example/doc_code_snippet/detailed_setup_guide

1 file changed

+6
-1
lines changed

data-capture-ready-to-use-ui-example/app/src/main/java/io/scanbot/example/doc_code_snippet/detailed_setup_guide/MockCameraSnippet.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ class MockCameraSnippet {
1919
* `showDebugImage` - if true, the mock camera will show `getFrameImagePath` file as image preview.
2020
* `tryHideFinderView` - if true, the finder view will be hidden.
2121
* `tryHidePolygonView` - if true, the ar overlay polygon view will be hidden.
22+
* `delayBetweenFramesMs` - delay between frames in milliseconds, used to simulate a camera feed.
23+
* `forceImageUploadOnSamePath` - if true, the mock camera will reload the image from the file system even if the path has not changed. This is useful for testing scenarios where the image file might be updated.
24+
* `imageFileReadAttemptLimit` - the number of attempts to read the image file. Helps to handle cases where the file might not be immediately available.
25+
* `imageFileReadAttemptDelay` - delay between attempts to read the image file. Helps to avoid busy-waiting and allows the file system to stabilize if the file is being written to.
2226
*/
2327
fun initMockCamera() {
2428
ScanbotCameraViewConfigurationProvider.cameraViewType =
@@ -34,7 +38,8 @@ class MockCameraSnippet {
3438
},
3539
showDebugImage = true,
3640
tryHideFinderView = false,
37-
tryHidePolygonView = false
41+
tryHidePolygonView = false,
42+
delayBetweenFramesMs = 100L
3843
)
3944
}
4045
// @EndTag("Mock Camera Initialization")

0 commit comments

Comments
 (0)