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> |