Capacitor 3 plugin - Notification that user shot screenshot iOS and Android
npm install @rbariviera/capacitor-screenshot-event
npx cap sync
startWatchEvent() => Promise<void>
removeWatchEvent() => Promise<void>
addListener(eventName: 'userDidTakeScreenshot', listenerFunc: (data: any) => void) => PluginListenerHandle
Param | Type |
---|---|
eventName |
"userDidTakeScreenshot" |
listenerFunc |
(data: any) => void |
Returns: PluginListenerHandle
Prop | Type |
---|---|
remove |
() => Promise<void> |