/capacitor-screenshot-event

Notification that user shot screenshot

Primary LanguageJava

@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