title: Set the camera resolution with google vision android
body: <p>Currently working on a barcode scanner on xamarin android. I am using the google vision API. </p>
  
  <pre><code>    cameraSource = new CameraSource
          .Builder(this, barcodeDetector)
          .SetRequestedPreviewSize(1920, 1080)
          .Build();
  </code></pre>
  
  <p>This is the code that i'm using to build the camera view.
  If i understand correctly, SetRequestedPreviewSize is used to display the camera view on the phone.
  How can i change the resolution that the camera of the phone is using? I couldn't find any answer sadly.</p>