Xamarin Camera2basic disable All Auto

hossein tavakoli 471 Reputation points
2021-03-17T19:33:36.607+00:00

I'm using Xamarin camera2basic.

When I click on Picture Button app starting focus and turn flash on , and finally does not take photo. It happening many time.
How can I disable auto focus , and auto exposure and etc...

because I want when I click on Picture Button it take picture as soon as possible.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,380 questions
0 comments No comments
{count} votes

Accepted answer
  1. hossein tavakoli 471 Reputation points
    2021-03-18T07:31:12.02+00:00

    resolved!

                    mPreviewRequestBuilder.Set(CaptureRequest.ControlAfMode, (int)ControlAFMode.Auto);
    
                    mPreviewRequestBuilder.Set(CaptureRequest.ControlAeMode, (int)ControlAEMode.OnAutoFlash);
    
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.