JengaShutterButton

fun JengaShutterButton(onClick: () -> Unit, contentDescription: String, modifier: Modifier = Modifier, enabled: Boolean = true)(source)

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.

Parameters

onClick

called when the button is tapped.

contentDescription

accessibility label (e.g. "Take photo").

modifier

the Modifier for the button.

enabled

whether the button can be tapped; dimmed when false.

Samples

JengaShutterButton(
    onClick = {},
    contentDescription = "Take photo",
)