Can I prevent a user from taking screenshots in a Mac application?

后端 未结 5 1240
忘了有多久
忘了有多久 2020-12-15 01:17

I have an image application and I want to release it where unregistered users can view the files but cant save until they\'ve registered.

I\'m looking for a way to p

5条回答
  •  时光说笑
    2020-12-15 01:56

    Based on a symbols search through DVD Player, it likely uses the private API CGSSetWindowCaptureExcludeShape. Richard Heard has been kind enough to reverse engineer it and wrap it for easy use.

    Being private, it may stop working (or have already stopped working) at any time.

    But ultimately the answer to your question is "yes, but not in any publicly documented way". Some other takeaways from this lengthy thread are:

    1. Asking this question inevitably excites a lot of myopic moral outrage.
    2. Given there's no public method, reverse engineering DVD Player is a useful path to pursue.
    3. A request to Apple DTS might be the only reliable method to find an answer.

提交回复
热议问题