Screenshot notifier api for MAC OS

I am looking for screenshot notification api specific for MAC OS.

I can see this for IOS on below link:

UIApplicationUserDidTakeScreenshotNotification | Apple Developer Documentation


If I am taking a screenshot in MAC OS, I want to get notify from MAC OS. Please help to understand this.

Thanks

MacBook Pro 16″, macOS 12.3

Posted on May 16, 2023 11:01 PM

Reply
Question marked as Top-ranking reply

Posted on May 24, 2023 4:48 AM

vgambhir wrote:

Thanks for the reply. We are looking for a notifier based implementation from OS side this may lead to scanning of screen shot metadata to in iterative mode.

There is no such API.


Can you explain what you are trying to accomplish? At a high level?


Because of the closed nature of iOS, the "screenshot" functionality is much more strongly compartmentalized. But on macOS, there are literally an infinite number of ways to take a screenshot. The system-provided functionality is just one way. Those file system hacks will not suffice.

3 replies
Question marked as Top-ranking reply

May 24, 2023 4:48 AM in response to vgambhir

vgambhir wrote:

Thanks for the reply. We are looking for a notifier based implementation from OS side this may lead to scanning of screen shot metadata to in iterative mode.

There is no such API.


Can you explain what you are trying to accomplish? At a high level?


Because of the closed nature of iOS, the "screenshot" functionality is much more strongly compartmentalized. But on macOS, there are literally an infinite number of ways to take a screenshot. The system-provided functionality is just one way. Those file system hacks will not suffice.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Screenshot notifier api for MAC OS

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.