Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

What is the Xamarin Forms equivalent to Android: CameraCharacteristics.GetPhysicalCameraIds

Will.ItraxWill.Itrax CAMember ✭✭✭

I am trying to use Android.Camera2 in the Android portion of a Xamarin Forms app. It is largely working. Now it was brought to my attention that there are Logical Camera Devices which may or may not contain Physical Camera Devices.

In this page:

under android.hardware.camera2.CameraCharacteristics.getPhysicalCameraIds() it says:
Returns the set of physical camera ids that this logical CameraDevice is made up of.

So, in my code I get a cameraCharacteristics by:
characteristics = cameraManager.GetCameraCharacteristics(id);
where id is a logical camera Id which I got from:
string[] cameraIds = cameraManager.GetCameraIdList();

And there I do not see anything about getPhysicalCameraIds().

What am I missing here? Any insight is much appreciated.

Best Answer


Sign In or Register to comment.