7.0.0 • Published 12 months ago

@rdlabo/capacitor-screenshot-event v7.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
12 months ago

@rdlabo/capacitor-screenshot-event

Notification that user shot screenshot

Install

npm install @rdlabo/capacitor-screenshot-event
npx cap sync

Usage

(() => {
  ScreenshotEvent.addListener('userDidTakeScreenshot', () => {
    // Notice take screenshot
  });

  // Start watch take event
  ScreenshotEvent.startWatchEvent();
})();

API

startWatchEvent()

startWatchEvent() => Promise<void>

removeWatchEvent()

removeWatchEvent() => Promise<void>

addListener('userDidTakeScreenshot', ...)

addListener(eventName: 'userDidTakeScreenshot', listenerFunc: () => void) => Promise<PluginListenerHandle>
ParamType
eventName'userDidTakeScreenshot'
listenerFunc() => void

Returns: Promise<PluginListenerHandle>


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>
7.0.0

12 months ago

6.0.0

2 years ago

5.0.0

3 years ago

4.0.0

3 years ago

3.0.0-0

5 years ago

3.0.0

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago