Monotouch access private API with return type


I am trying to port the following code to mirror My App's display to an external display via the VGA adapter.

This code optionally accesses UIGetScreenImage(); which returns a CGImageRef object. How can i call this Private API from Monotouch? I want to use this method only for an internal build of my app for trade shows.

I have seen several solutions, but none talks about how to call a selector with a return type.


CGImageRef's MonoTouch wrapper, CGImage, has a static property ScreenImage. You can get a screenshot with this property, I haven't used it though.

Details on binding Objective-C objects (including returning selector values) can be found here: By : Dimitris Tavlikos

This video can help you solving your question :)
By: admin