rememberCameraDevice
fun rememberCameraDevice(position: TargetCameraPosition, filter: DeviceFilter? = null): CameraDevice?
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)))Content copied to clipboard
Return
The matching CameraDevice, or null while loading or if there is no Camera at that position.