Hi Murilo!
I'm sorry for the delay, things have been busy around here but I have some news!
I checked the plugin code and seems like it have the function to detect screenshot on iOS by default, so I just adapted it so you can use in your Mobile Apps using the component.
However it had not this functionality for android, and since I think things must be equal whenever possible I researched a little bit and developed it also for android.
I will explain what I did for your knowledge.
First I had to clone the original github and make some changes.
Through these two stack overflow topics I was able to see how to implement this in Android and how I could adapt it to cordova:
https://stackoverflow.com/questions/31360296/listen-for-screenshot-action-in-android
https://stackoverflow.com/questions/54939027/triggering-javascript-event-from-android
However since Android don't have a default event for taking a ScreenShot, the option commonly used (Even by Snapchat) is to create an observer that keep checking if while the app is opened any file created have the name 'screenshot'.
Personally I don't think it is a very good way to do it, but is the only option I found. And looks like the Big Ones (Like Snapchat) also use it, so I accepted it for now at least :)
Since it needs to check for new files you will need the permission to Read External Storage, which is handled by the app.
I made this option in android optional, so you can choose to use it or not.
Right now in the app you will be able to:
-Prevent the user from taking screenshots in android only.
-Detect a screenshot taken by an User in both, iOS and Android.
-Set the default behavior for all app or for a specific screen
-Set the default callback for all app or for a specific screen
I added a sample module in Component Page, so you can see how to use it.
Let me know if it worked well.
Cheers and Regards,
RR :)