mockCamera
expect fun mockCamera(imageFileUri: String, refreshOnEachFrame: Boolean = false, requestPermission: Boolean = false): Result<Unit>
Mock camera preview by using static images as a frame source. This is useful for testing purposes.
Parameters
imageFileUri
The file uri of the image to be used as a mock camera frame.
refreshOnEachFrame
If true, the mock camera will refresh the frame on each request, simulating a live camera feed.
requestPermission
If true, the SDK will request camera permission if not already granted. Android only.