Skip to content

rbariviera/capacitor-screenshot-event

 
 

Repository files navigation

@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

About

Notification that user shot screenshot

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 60.1%
  • Swift 13.8%
  • TypeScript 8.4%
  • Ruby 7.8%
  • Objective-C 6.1%
  • JavaScript 3.8%