The original question was to prevent screenshot,
This question is about how to take screenshot, is that correct?
In general you won't find examples of using some random Android Java class from Python.
Which means you have to learn to use Pyjnius.
Alternatively use Kivy's native export_to_png
However if you want to trigger this from the buttons used by Android there will be extra work.
I have never tried this so I can't help you. But a little research suggest an experiment:
This suggests the screenshot key is 120 , seems worth testing.
You could try a quick test to see if it works
Window.bind(on_keyboard = self.whatever)
def whatever(self,window,key,*args):
if key == 120:
print('yes')
return False