Capturing camera feed .net maui

Viewed 1051

I'm new to Xamarin and Maui, I've been working on an app and now I need a way to access the camera feed.

I want to be able to preview the camera, for android first, within the app and capture an image when a buton is pressed. I have it working with the native camera app (media selector) but this isn't what would fulfil my requirements.

I've been trying to use handlers with Android camera X to get a preview view on the layout but I just can't crack it, there's hardly any direction on building one from the ground up. Does anyone have any experience with this that might be able to point me in the right direction?

2 Answers

ANSWER: I ended up creating a custom handler for maui and building my own view using native android. Built the view using xamarin in c#. Then used an interface to call back to the handler that an image had been taken.

Related