4.0.0 • Published 3 years ago
@rbariviera/capacitor-screenshot-event v4.0.0
@rbariviera/capacitor-screenshot-event
Capacitor 3 plugin - Notification that user shot screenshot iOS and Android
Install
npm install @rbariviera/capacitor-screenshot-event
npx cap sync
API
startWatchEvent()
startWatchEvent() => Promise<void>
removeWatchEvent()
removeWatchEvent() => Promise<void>
addListener(...)
addListener(eventName: 'userDidTakeScreenshot', listenerFunc: (data: any) => void) => PluginListenerHandle
Param | Type |
---|---|
eventName | "userDidTakeScreenshot" |
listenerFunc | (data: any) => void |
Returns: PluginListenerHandle
Interfaces
PluginListenerHandle
Prop | Type |
---|---|
remove | () => Promise<void> |
Forked from @rdlabo/capacitor-screenshot-event
4.0.0
3 years ago