Package-level declarations

Camera screens: JengaCaptureFrame, a guide over a camera preview for a face, card or page with hold progress, and JengaShutterButton.

Types

Link copied to clipboard
class JengaCaptureFrameColors(val scrim: Color, val border: Color, val readyBorder: Color, val progress: Color)

Resolved colors for a JengaCaptureFrame. Override via JengaCaptureFrameDefaults.colors.

Link copied to clipboard

Defaults and token mappings for JengaCaptureFrame.

Link copied to clipboard
sealed interface JengaCaptureShape

The outline of a JengaCaptureFrame.

Link copied to clipboard

Functions

Link copied to clipboard
fun JengaCaptureFrame(shape: JengaCaptureShape, modifier: Modifier = Modifier, ready: Boolean = false, holdProgress: Float? = null, onFrameBoundsChange: (Rect) -> Unit? = null, colors: JengaCaptureFrameColors = JengaCaptureFrameDefaults.colors())

A capture guide drawn over a camera preview: a frame in shape, with the area outside it dimmed. The border turns to the ready color when ready, and holdProgress draws a line around the outline while the user holds still.

Link copied to clipboard
fun JengaShutterButton(onClick: () -> Unit, contentDescription: String, modifier: Modifier = Modifier, enabled: Boolean = true)

A round camera shutter button: a ring around a filled disc, in the overlay content color so it reads on a camera preview. The disc shrinks while pressed.