Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to take a screenshot of the iPhone/iPad programmatically with Xamarin.iOS (C#)?

How can I take a screenshot with Xamarin.iOS and stored this image in UIImage.

I have seen several examples of Obj-C, but no C #

like image 400
DATI.Investigation Avatar asked Aug 05 '13 21:08

DATI.Investigation


People also ask

How can you capture the screen on IOS?

Press the side button and the volume up button at the same time. Quickly release both buttons. After you take a screenshot, a thumbnail temporarily appears in the lower-left corner of your screen. Tap the thumbnail to open it or swipe left to dismiss it.

How do I capture a webpage on my iPad?

Do one of the following: On an iPad with a Home button: Simultaneously press and then release the top button and the Home button. On other iPad models: Simultaneously press and then release the top button (on the top-right edge of iPad) and either volume button.

How do you screenshot a blocked App on iPhone?

Ø Open the Restricted app where the screenshot will be taken. Ø Select the Settings icon that looks like a toolbox from the floating button on your screen. Ø Select the Screenshot option from the drop-down menu and shut the drop-down menu. Ø A second floating button, a left-hand camera icon, will appear on your screen.


1 Answers

Even more elegant:

UIScreen.MainScreen.Capture ();
like image 104
Rolf Bjarne Kvinge Avatar answered Oct 01 '22 14:10

Rolf Bjarne Kvinge