Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Rikin
Posts: 11
Registered: ‎05-30-2013
My Device: 9700
Accepted Solution

How to programatically take a screenshot on BlackBerry 10 using cascades?

Is it possible to take the screenshot using Blackberry 10 cascades API?

Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: How to programatically take a screenshot on BlackBerry 10 using cascades?

If you mean a screenshot of the app itself, then there are ways of doing that using the libscreen (native) APIs but not Cascades. If you mean taking a screenshot of some other screen (when the app taking the screenshot is not fullscreen) then it's not possible yet (and likely will never be without some extra permissions, for security reasons).

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
BlackBerry Development Advisor
EunKyung
Posts: 43
Registered: ‎09-27-2012
My Device: Passport

Re: How to programatically take a screenshot on BlackBerry 10 using cascades?

[ Edited ]

Assuming it's within your app, you can use screen_read_window() call.  

 

More details are here:

https://developer.blackberry.com/native/reference/core/screen_libref/topic/screen_read_window.html

----------------------------------------------------
Hope this was helpful. Happy Coding!
EK @echotown
Retired
robbieDubya
Posts: 418
Registered: ‎07-18-2012
My Device: Q10

Re: How to programatically take a screenshot on BlackBerry 10 using cascades?

Or, if you want to stay in Cascades/Qt: http://developer.blackberry.com/native/reference/cascades/bb__system__screenshot.html
--
Rob is no longer associated with BlackBerry.