4.0.0 • Published 3 years ago

@rbariviera/capacitor-screenshot-event v4.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@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
ParamType
eventName"userDidTakeScreenshot"
listenerFunc(data: any) => void

Returns: PluginListenerHandle


Interfaces

PluginListenerHandle

PropType
remove() => Promise<void>

Forked from @rdlabo/capacitor-screenshot-event