UNPKG

@titanium/screenshot

Version:

⭐ Axway Amplify modules that to detect that a screenshot was taken on iOS with Appcelerator Titanium SDK

156 lines (104 loc) 5.39 kB
[//]: # (header-start) <h1 align="center"> <a href="https://blog.axway.com/mobile-apps/changes-to-application-development-services"> Preparing for end of Axway </a> </h1> <h2 align="center"> 👇 &nbsp; support for Amplify Cloud and Mobile &nbsp; 👇 </h2> <a href="https://brenton.house/saying-goodbye-to-axway-amplify-titanium-31a44f3671de"> <p align="center"> <img src="https://cdn.secure-api.org/images/RIP-Axway-Amplify-Titanium.png" alt="RIP Axway Amplify Titanium (2010 - 2022)" width="80%" /> </p> </a> <p align="center"> <a href="https://blog.axway.com/mobile-apps/changes-to-application-development-services"> 🪦 &nbsp; RIP Axway Amplify Titanium (2010 - 2022) </a> </p> <p align="center"> <a href="https://blog.axway.com/mobile-apps/prepare-your-apps-for-appcelerator-end-of-support"> 🪦 &nbsp; RIP Axway Amplify Cloud Services (2012 - 2022) </a> </p> <p align="center"> <a href="https://blog.axway.com/mobile-apps/prepare-your-apps-for-appcelerator-end-of-support"> 🪦 &nbsp; RIP Axway Amplify Crash Analytics (2015 - 2022) </a> </p> <hr> <h4 align="center"> 🛑 &nbsp;&nbsp; <a href="https://blog.axway.com/mobile-apps/prepare-your-apps-for-appcelerator-end-of-support">Axway support for Amplify products has ended</a> for most products related to mobile and cloud. </h4> <h4 align="center"> A few of the open-source versions of Axway Amplify products will live on after <a href="">Axway Amplify End-of-Life</a> (EOL) announcements. However, all closed-source projects and most open-source projects are now dead. </h4> <p>&nbsp;</p> > 👉 &nbsp;&nbsp; A group of Axway employees, ex-Axway employees, and some developers from Titanium community have created a legal org and now officially decide all matters related to future of these products. <p>&nbsp;</p> <hr> ## API FAQ: * [API Best Practices](https://brenton.house) * [What is API Security?](https://brenton.house/what-is-api-security-5ca8117d4911) * [OWASP Top 10 List for API Security](https://www.youtube.com/watch?v=GLVHDj0Cpg4) * [What is API Security?](https://brenton.house/what-is-api-security-5ca8117d4911) * [Top API Trends for 2022](https://brenton.house/top-10-api-integration-trends-for-2022-49b05f2ef299) * [What is a Frankenstein API?](https://brenton.house/what-is-a-frankenstein-api-4d6e59fca6) * [What is a Zombie API?](https://brenton.house/what-is-a-zombie-api-6e5427c39b6a) * [API Developer Experience](https://brenton.house/keys-to-winning-with-an-awesome-api-developer-experience-62dd2fa668f4) * [API Cybersecurity 101](https://brenton.house/what-is-api-security-5ca8117d4911) * [YouTube API Videos](https://youtube.com/brentonhouse) * [YouTube API Shorts Videos](https://youtube.com/apishorts) &nbsp; [![Click to watch on Youtube](https://img.youtube.com/vi/GLVHDj0Cpg4/0.jpg)](https://www.youtube.com/watch?v=GLVHDj0Cpg4&list=PLsy9MwYlG1pew6sktCAIFD5tbrXy9HUQ7 "Click to watch on YouTube") > &nbsp; [↑ Watch video on YouTube ↑](https://www.youtube.com/watch?v=GLVHDj0Cpg4&list=PLsy9MwYlG1pew6sktCAIFD5tbrXy9HUQ7) &nbsp; <p>&nbsp;</p> <hr> <p>&nbsp;</p> <p>&nbsp;</p> [//]: # (header-end) # @titanium/screenshot [![@titanium/screenshot](https://img.shields.io/npm/v/@titanium/screenshot.png)](https://www.npmjs.com/package/@titanium/screenshot) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=brentonhouse/titanium-screenshot)](https://dependabot.com) <br/> * [API FAQ:](#api-faq) * [📝 Description](#-description) * [🚀 Getting Started](#-getting-started) * [Install `@titanium/screenshot` in root of project](#install-titaniumscreenshot-in-root-of-project) * [Usage](#usage) * [✨Features](#features) * [Author](#author) * [📚Learn More](#learn-more) * [📣 Feedback](#-feedback) * [©️ Legal](#️-legal) ## 📝 Description > Native modules that allows you to detect that a screenshot was taken on iOS. > > This is a repackaging of the compiled iOS module for [de.marcelpociot.screenshot](https://github.com/mpociot/TiScreenshotDetection) to allow for installation via npm. ## 🚀 Getting Started ### Install `@titanium/screenshot` in root of project ```bash npm install @titanium/screenshot ``` ### Usage ```JavaScript const screenshotDetector = require('@titanium/screenshot'); screenshotDetector.addEventListener("screenshotTaken", function(e) { alert( "Screenshot taken!" ); }); ``` ## ✨Features * [x] Includes Titanium native iOS module: `de.marcelpociot.screenshot 1.0.0` ## Author Marcel Pociot ## 📚Learn More ⭐ [de.marcelpociot.screenshot GitHub Repo](https://github.com/mpociot/TiScreenshotDetection) - Repo for original de.marcelpociot.screenshot module ## 📣 Feedback Have an idea or a comment? [Join in the conversation here](https://github.com/brentonhouse/titanium-screenshot/issues)! ## ©️ Legal Alloy is developed by Appcelerator and the community and is Copyright © 2012-Present by Appcelerator, Inc. All Rights Reserved. Alloy is made available under the Apache Public License, version 2. See their license file for more information. Appcelerator is a registered trademark of Appcelerator, Inc. Titanium is a registered trademark of Appcelerator, Inc. Please see the LEGAL information about using trademarks, privacy policy, terms of usage and other legal information at http://www.appcelerator.com/legal.