TL;DR
- Android 14 launched a brand new screenshot detection API that may let app builders simply detect when a consumer has taken a screenshot with out constructing hacky workarounds.
- Apps have begun utilizing the API, and now they’ll detect when you’ve gotten taken a screenshot utilizing commonplace screenshot strategies.
- The app doesn’t know the contents of the display, although.
Apps like Snapchat popularized the thought of ephemeral messaging, with messages disappearing after being learn by the opposite occasion. However, the thought would have fallen flat if customers might save screenshots of conversations and media with none repercussions. In response, Snapchat applied a screenshot detection methodology that notifies customers when a screenshot of the messages and media they despatched has been taken. Google formally applied a screenshot detection system inside Android, too, with Android 14, and apps utilizing the API have lastly been noticed.
As per a report by AndroidPolice, German purchasing app OTTO has adopted Android 14’s screenshot detection APIs. When a consumer takes a screenshot inside this app, the app is notified of the motion, and a toast message is displayed that the app has detected the screenshot. Developers can then construct actions as soon as the screenshot has been detected.
The OTTO app makes use of the official Android 14 API for screenshot detection. Google describes the API as follows:
To create a more-standardized expertise for detecting screenshots, Android 14 introduces a privacy-preserving screenshot detection API. This API lets apps register callbacks on a per-activity foundation. These callbacks are invoked, and the consumer is notified, when the consumer takes a screenshot whereas that exercise is seen.
Google additionally notes a number of particulars concerning the API. For one, the app is knowledgeable of the screenshot motion however not the precise contents on the display. Google leaves that duty on the app to find out what was on the display when the consumer took a screenshot.
The developer may resolve what to do subsequent. For occasion, messaging apps would need to inform the consumer on the opposite finish {that a} screenshot was taken.
Further, the API can solely detect a screenshot when it is taken utilizing the {hardware} button combo or different commonplace strategies. The API can’t detect screenshots taken by way of ADB, and presumably by way of root screenshot apps and a screenshot of the Recents process switcher display.
If an app developer desires to be stricter about screenshots, different older APIs enable apps to dam the flexibility to take screenshots utterly. We’ve seen banking and video streaming apps implement this to dam customers from taking screenshots.
The official Android API for screenshot detection might be a boon for app builders as they may not should create workaround implementations as Snapchat did. Users might not like this variation, so I’d advise exercising widespread sense when taking screenshots of conversations and different delicate content material. If the opposite occasion would have purpose to be upset when you have taken a screenshot, think about not taking the screenshot within the first place.
Would you want more apps to make use of Android 14’s screenshot detection API?
51 votes