Package-level declarations
Functions
Link copied to clipboard
fun Engine.setCameraPreview(pixelStreamFill: DesignBlock, preview: Preview, mirrored: Boolean = false, onFirstFrameAvailable: () -> Unit = {})
fun Engine.setCameraPreview(pixelStreamFill: DesignBlock, preview: Preview, mirroredState: StateFlow<Boolean>, onFirstFrameAvailable: () -> Unit = {})
Connects android camerax to the Engine. Calling this function will render the camera output to the pixelStreamFill. Configuration of the preview should be provided via camerax preview. Note that the dimensions of the block that holds pixelStreamFill should be set manually and have nothing to do with preview dimensions.