Adobe-Runtime-Support icon indicating copy to clipboard operation
Adobe-Runtime-Support copied to clipboard

Is it possible to dected a screenshots using adobe air app?

Open megajogos opened this issue 3 years ago • 6 comments

Is it possible to dected a screenshots using adobe air app?

Anyone already tried that?

megajogos avatar Mar 24 '22 21:03 megajogos

https://github.com/akexorcist/ScreenshotDetection

https://gist.github.com/righettod/8f115d0916eff11a5345dc6cfce04a43

Win32 : https://jo0ls-dotnet-stuff.blogspot.com/2008/12/vbnet-global-keyboard-hook-to-detect.html

You can always code Native Extensions if you want to add functionalities that are non-existent inside of AIR.

al-sabr avatar Apr 04 '22 14:04 al-sabr

Could you build this ane @marchbold ?

Distriqt is the best ANE developer!

We would buy for sure.

megajogos avatar Apr 05 '22 17:04 megajogos

I feel like I did a custom ANE for a client a while ago to do this. I'll have a look and see if we can publish something.

marchbold avatar Apr 06 '22 22:04 marchbold

Hi, Just circling back on this one as I've just released our work on the screenshot detection (iOS/Android at this point). Just a note, this allows you to detect that a screenshot was taken, not stop the screenshot from being taken.

https://github.com/airnativeextensions/ANE-DetectScreenshot

Documentation:

https://docs.airnativeextensions.com/docs/detectscreenshot

Let me know if you have a chance to try it out.

marchbold avatar May 20 '25 05:05 marchbold

Does it detect the screenshot, a moment before the image is saved to the device, or a moment after? Like my bank app, rather than preventing the screenshot, if I try to take a screenshot it puts a black rectangle over everything so that my screenshot is a black rectangle. Could we do that with this extension?

Ender22 avatar May 20 '25 06:05 Ender22

After, I haven't seen a way to override a screenshot easily.

The only methods I've seen that works are methods like what snapchat does which is require input to display content (user has to long press content for it to play) and rely on the fact that touch events are cancelled before the screenshot is taken. Or to use the iOS hack of placing a transparent secure text field over your entire content, which should get blocked when taking the screenshot. Personally haven't tried either of these but those were the options from my research.

marchbold avatar May 20 '25 06:05 marchbold