MediaDeviceMenu

fun MediaDeviceMenu(cameraState: MutableState<DeviceState>, modifier: Modifier = Modifier)

A dropdown menu that enables selection of the available cameras.

When a camera is selected, cameraState's value will be updated with the selected device.

Example:

val deviceState = rememberCameraState()
MediaDeviceMenu(cameraState = deviceState)