Currently the camera back and front flip does not change on demand programmatically but is set to the state it was during the initial call. Is it possible to make it change dynamically based on an action. That is :
Scanner(
modifier = Modifier
.clipToBounds()
.clip(shape = RoundedCornerShape(size = MarginHalf)),
onScanned = onScanned,
types = listOf(
CodeType.QR
),
cameraPosition = if(BACK_SELECTED) CameraPosition.BACK else CameraPosition.FRONT // <---- It would be nice to have this support
)
We have a requirement to force the orientation of the camera to be fixed to Landscape. Sometimes the orientation is not correct. Is it possible to provide a way to force the orientation. That is:
Scanner(
modifier = Modifier,
defaultOrientation = LandScape, // <----------- It would be nice to have this support
onScanned = onScanned,
types = listOf(
CodeType.QR
),
cameraPosition = if(BACK_SELECTED) CameraPosition.BACK else CameraPosition.FRONT
)
Currently the camera back and front flip does not change on demand programmatically but is set to the state it was during the initial call. Is it possible to make it change dynamically based on an action. That is :
We have a requirement to force the orientation of the camera to be fixed to Landscape. Sometimes the orientation is not correct. Is it possible to provide a way to force the orientation. That is: