Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin.Mobile iPad Camera Size

I'm developing an app specifically for the iPad using Xamarin Studio. One feature is to take a picture using the camera so naturally I'm using Xamarin.Mobile. Currently when I invoke the TakePhotoAsync method on the MediaPicker the camera size comes up in an iPhone size window in the middle of my current view.

Is there a way to make the MediaPicker camera be full screen? Am I missing a setting or a build option or something?

Here is a screen shot

Small Camera View

like image 697
Jason Maxwell Avatar asked May 22 '13 04:05

Jason Maxwell


2 Answers

In the current (0.7) version, you can call GetTakePhotoUI to return a UIViewController to handle the display yourself.

like image 113
ermau Avatar answered Oct 25 '22 05:10

ermau


It is very dissapointing, but there currently is no way (I know of) to do that. There is another way by using the source code from @miqueldeicaza's Tweetstation app, that is up on Github (Camera Helper). The Xamarin Documentation describes how to use it.

TweetStation.Camera.TakePicture(this, (photoObj) => ...

You pass in a reference to the ViewController you want the Camera in and it will fill up the entire View.

like image 32
Richard Avatar answered Oct 25 '22 06:10

Richard