@rdlabo/capacitor-screenshot-event

Notification that user shot screenshot

Usage no npm install needed!

<script type="module">
  import rdlaboCapacitorScreenshotEvent from 'https://cdn.skypack.dev/@rdlabo/capacitor-screenshot-event';
</script>

README

@rdlabo/capacitor-screenshot-event

Notification that user shot screenshot

Install

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

API

startWatchEvent()

startWatchEvent() => Promise<void>

removeWatchEvent()

removeWatchEvent() => Promise<void>

addListener(...)

addListener(eventName: 'userDidTakeScreenshot', listenerFunc: () => void) => PluginListenerHandle
Param Type
eventName "userDidTakeScreenshot"
listenerFunc () => void

Returns: PluginListenerHandle


Interfaces

PluginListenerHandle

Prop Type
remove () => Promise<void>