As far as I could understand from the docs, Clover Station Duo has 2 cameras, and it's possible to use the cameras with an Intent which would open another app, selecting the appropriate camera based on the CAMERA_ID extra.
static int CAMERA_ID_MERCHANT_FACING = 1; static int CAMERA_ID_CUSTOMER_FACING = 0; Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); intent.putExtra("android.intent.extra.CAMERA_ID", CAMERA_ID_MERCHANT_FACING); startActivity(cameraIntent);
However, we need to use the camera inside our app, and in order to do that, we are using a well known and well supported library developed by Google, called CameraX.
Is there any way that we can identify the CAMERA_ID_MERCHANT_FACING using CameraX? If yes, how can we achieve that? Could you please provide an example?
Also, are both CAMERA_ID_MERCHANT_FACING and CAMERA_ID_CUSTOMER_FACING considered as LENS_FACING_FRONT?
Thank you!