Notification that user shot screenshot
Enjoying this project? Your support helps keep it alive and growing!
Sponsoring means you directly contribute to new features, improvements, and maintenance.
npm install @rdlabo/capacitor-screenshot-event
npx cap sync(() => {
ScreenshotEvent.addListener('userDidTakeScreenshot', () => {
// Notice take screenshot
});
// Start watch take event
ScreenshotEvent.startWatchEvent();
})();startWatchEvent() => Promise<void>removeWatchEvent() => Promise<void>addListener(eventName: 'userDidTakeScreenshot', listenerFunc: () => void) => Promise<PluginListenerHandle>| Param | Type |
|---|---|
eventName |
'userDidTakeScreenshot' |
listenerFunc |
() => void |
Returns: Promise<PluginListenerHandle>
| Prop | Type |
|---|---|
remove |
() => Promise<void> |