rememberCameraDevice

Get the CameraDevice that best satisfies the given filter at the given position, or the default CameraDevice at that position if no filter is given. It updates when devices change.

val device = rememberCameraDevice(TargetCameraPosition.BACK, DeviceFilter(listOf(DeviceType.WIDE_ANGLE)))

Return

The matching CameraDevice, or null while loading or if there is no Camera at that position.