Is it possible to take a screenshot of the Home Screen programmatically from inside of my application?

Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using Private APIs yes.
UIGetScreenImage()also works when the app is running in the background. I set up an app to take a screenshot whenever an exception is thrown, and it also takes screenshots of the home screen/ other apps when it crashes while running in the background.This question has some interesting answers regarding the DisplayRecorder app from the AppStore: How does the iOS app Display Recorder record the screen without using private API?
And this shows you how to use UIGetScreenImage: https://stackoverflow.com/a/2507740/832065
Update:
_UICreateScreenUIImage()is a much faster method of getting a screenshot. It also returns a UIImage instead of CGImageRef: