Share via

Camera2basic for xamarin form

hossein tavakoli 471 Reputation points
2021-05-21T08:39:56+00:00

I need Camera2basic for xamarin form, is it available?

Developer technologies | .NET | Xamarin
0 comments No comments

2 answers

Sort by: Most helpful
  1. JessieZhang-MSFT 7,721 Reputation points Microsoft External Staff
    2021-05-22T02:43:27.477+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    I need Camera2basic for xamarin form, is it available?

    Camera2basic is based on android platform.If you want to achieve this function in xamarin forms, you can use DependencyService to achieve this function.

    The DependencyService class is a service locator that enables Xamarin.Forms applications to invoke native platform functionality from shared code.

    In addition, you can also use nuget Xam.Plugin.Media which is a simple cross platform plugin to take photos and video or pick them from a gallery from shared code.

    For more details, you can check: https://github.com/jamesmontemagno/MediaPlugin .

    And there is also a sample included in above link, you can check it here: https://github.com/jamesmontemagno/MediaPlugin/tree/master/samples .

    Best Regards,

    Jessie Zhang

    ---
    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

  2. Alessandro Caliaro 4,206 Reputation points
    2021-05-21T09:26:53.647+00:00

    Camera2Basic in for Android so you should find a Xamarin Android example.

    You can take a look to CameraView in Xamarin Community Toolkit

    cameraview

    Was this answer helpful?


Your answer

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