Jenga Scanner Viewfinder
fun JengaScannerViewfinder(modifier: Modifier = Modifier, status: JengaScannerStatus = JengaScannerStatus.Scanning, frameSizeRatio: Float = JengaScannerViewfinderDefaults.FrameSizeRatio)(source)
A camera-scanner reticle: a dimming scrim with a clear square cut-out, four rounded corner brackets, and a sweeping scan line. Lay it directly over a camera preview.
The accent color follows status: brand while JengaScannerStatus.Scanning (the only state that animates the scan line), and the matching status accent otherwise.
Parameters
modifier
the Modifier for this overlay (typically fillMaxSize).
status
the scan state driving the accent and scan-line animation.
frame Size Ratio
reticle side length as a fraction of the smaller edge.
Samples
JengaScannerViewfinder(
status = JengaScannerStatus.Scanning,
)Content copied to clipboard