capacitor-community / privacy-screen

⚡️ Capacitor plugin that protects your app from displaying a screenshot in Recents screen/App Switcher.
MIT License
88 stars 23 forks source link

feat: Ability to detect screen record even started before app launch #71

Open ramyahm2010 opened 1 year ago

ramyahm2010 commented 1 year ago

Is your feature request related to a problem? Please describe:

Using current plugin features i can listen to (screenRecordingStarted / screenshotTaken) events, but problem occurs if user already started screen recording on IPhone then launch app, in this case app can't listen to these events as it already fired before app launch.

Describe the solution you'd like:

I suggest that the plugin should have a way to listen or subscribe to any active screen recording. so it could be easily detected - if active.