wn-na / react-native-capture-protection

It’s a library for React Native to control simple capture events(i.e. Screenshot or Screen record)
https://www.npmjs.com/package/react-native-capture-protection
MIT License
102 stars 10 forks source link

Features Req For Android #9

Closed thureintun-me closed 8 months ago

thureintun-me commented 1 year ago

Can u add isScreenRecording features for android? We really need this features. We want to know if user start screen recording in android.

wn-na commented 1 year ago

It's not possible to add them right now. However, i working on adding it in the near future. with accessibilityservice

wn-na commented 1 year ago

@thureintun-me
Hi, isScreenRecording is add in v1.6.0

When a virtual screen is added, it's usually for mirroring or recording. For that reason, I decided to make sure that if a virtual screen is added, it is recording.

However, event detection when the app is launched while already recording, it must be not detected.

thureintun-me commented 1 year ago

Hey Thanks for you work ! but it did not quite work.It always return false when screen recording event happen

Hopefully you could help us.We really need this features in our app.

Thanks

wn-na commented 1 year ago

@thureintun-me Not good news for me. but, i try to figure out how to check record event.

Thanks for share your result.

thureintun-me commented 1 year ago

hope you can fix soon ( 💯

wn-na commented 10 months ago

@thureintun-me hi, v1.9.2 support android screenshot event, but recording is not support...

thureintun-me commented 10 months ago

Hopefully u can support screen recording event soon

wn-na commented 9 months ago

@thureintun-me hi, can you test for v1.9.3? in Android 14, support android screenshot event, but i can't check for under version.