0

I am creating a xamarin forms app, where i need to implement that if user takes screenshot then, a watermark should appear on that screenshot. The watermark should appear only on screenshot not in whole app. If it is possible then please help me.

Any advice or suggestion will be great help for me. Thank You.

Rohit Chauhan
  • 31
  • 1
  • 6

1 Answers1

0

While preventing screenshots is more or less possible on Android (https://stackoverflow.com/a/31406316/16607977) there's no API to detect or manipulate the screenshot. Here's a description of a workaround to detecting screenshots, which boils down to watching the filesystem for new files with "screenshot" in their path - you might try to access and manipulate this file then. If the user does not give you permissions, this won't work.

For iPhone, you might also detect the screen capture (https://stackoverflow.com/a/18158483/16607977), somehow identify the file and add the watermark. I doubt this will be easy without the user's permission.

badasta
  • 83
  • 6