Xamarin.Mobile iPad Camera Size

508 Views Asked by At

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

2

There are 2 best solutions below

1
On BEST ANSWER

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

1
On

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.