6.0.0 • Published 18 days ago

@rdlabo/capacitor-screenshot-event v6.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
18 days 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(...)

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

Returns: Promise<PluginListenerHandle>


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>
6.0.0

18 days ago

5.0.0

1 year ago

4.0.0

1 year ago

3.0.0-0

3 years ago

3.0.0

3 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago