M
M
Medovochka2021-11-17 15:30:46
Android
Medovochka, 2021-11-17 15:30:46

How is screenshot usage tracked?

Hello!
I think everyone has known for a long time that if you send a photo (for example, one that disappears) to a PM on Instagram and the interlocutor takes a screenshot OR starts recording the screen in advance, then you will still see the icon that someone "took a screenshot". I can only judge by IOS devices (I don’t have an Android OS) - it really is.

And recently, TG announced future features, but I'm only interested in one thing - a ban on screenshots (most likely, the screen recording will be interrupted, or write something blurry)

Connoisseurs, tell me please, what can I read or see on this topic? I myself am a beginner iOS developer, and I want to study this topic with prohibitions or how the screenshot trigger and user notifications about it are implemented. Yes, we give access to the camera, but we do not take screenshots and record with the camera...
6194f5ec4ee71233566093.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergio, 2021-11-17
@sergiodev

https://stackoverflow.com/questions/13484516/ios-d...

NotificationCenter.default.addObserver(
    forName: UIApplication.userDidTakeScreenshotNotification,
    object: nil,
    queue: .main) { notification in
        // пользователь сделал скриншот, ваш код тут
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question