@rdlabo/capacitor-screenshot-event
TypeScript icon, indicating that this package has built-in type declarations

6.0.0 • Public • Published

@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>
Param Type
eventName "userDidTakeScreenshot"
listenerFunc () => void

Returns: Promise<PluginListenerHandle>


Interfaces

PluginListenerHandle

Prop Type
remove () => Promise<void>

Readme

Keywords

Package Sidebar

Install

npm i @rdlabo/capacitor-screenshot-event

Weekly Downloads

431

Version

6.0.0

License

MIT

Unpacked Size

19.1 kB

Total Files

26

Last publish

Collaborators

  • rdlabo