How to use the camera of xamarin forms without extensions?

LucaxsTeixeira 1 Reputation point
2021-03-08T20:16:10.413+00:00

I want to know how to use camera without extensions in xamarin forms because I cannot use it.

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

3 answers

Sort by: Most helpful
  1. Alessandro Caliaro 4,181 Reputation points
    2021-03-08T20:29:43.417+00:00

    Extensions means plugin?

    There is a camera view in Xamarin community toolkit

    Otherwise you have to implement a view in the platform specific project and call it from XF

    0 comments No comments

  2. Cole Xia (Shanghai Wicresoft Co,.Ltd.) 6,751 Reputation points
    2021-03-09T05:43:07.947+00:00

    Hello,

    Welcome to Microsoft Q&A!

    As alessandrocaliaro mentioned above , Xamarin.Forms does not provide camera API , We have to implement it on each platform .

    There is an article demonstrates how to implement a View with custom renderer .

    75683-screenshots.png

    Note : It's better to test on real device (iOS simulator does not support camera) .


    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.

    0 comments No comments

  3. Amin Dodin 1 Reputation point
    2021-03-23T20:56:37.187+00:00

    You might not be forced to write different implementations for iOS and Android. The company I work for has a Xamarin Camera Control that’s part of the LEADTOOLS SDKs. It provides a common camera API which gives you control over Android and iOS camera functions.

    This means you don’t have to write native code for each device platform.

    If you would like to try it, there’s a fully-functional free evaluation you can download.

    If you download the full evaluation, it will install source code for several demo programs, including this one:

    [LEADTOOLS folder]\Examples\Xamarin\CameraDemo

    There is also free technical support through email and chat, in case you need help using the LEADTOOLS control.

    This is a screenshot from the Xamarin camera demo:
    80882-xamarincamerademo1.png

    0 comments No comments