GithubHelp home page GithubHelp logo

Comments (5)

retyui avatar retyui commented on July 17, 2024

the same problem (Android 11, [email protected])

from react-native-detector.

retyui avatar retyui commented on July 17, 2024

for my case ContentObserver::onChange(selfChange: Boolean, uri: Uri?, flags: Int) was invoked with:

uri: content://media/external/images/media/59645
flags: 4
path: /storage/emulated/0/DCIM/Screenshots/.pending-1631296636-Screenshot_20210903-205716_DetectScreenshot.jpg

uri: content://media/external/images/media/59645
flags: 8
path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20210903-205716_DetectScreenshot.jpg


uri: content://media/external/images/media/59645
flags: 8
path: /storage/emulated/0/DCIM/Screenshots/Screenshot_20210903-205716_DetectScreenshot.jpg

from react-native-detector.

retyui avatar retyui commented on July 17, 2024

As foreground you can use a throttle @timothyerwin

from react-native-detector.

AzizAK avatar AzizAK commented on July 17, 2024

the issue has been fixed, now the package saves the latest path and compare it with the upcoming one if it's not matching it will be considered as new screenshots, all the screenshots name with timestamp so it wont be duplicated

from react-native-detector.

Standin-Alone avatar Standin-Alone commented on July 17, 2024

not working for me

import {
addScreenshotListener,
removeScreenshotListener,
} from 'react-native-detector';

userDidScreenshot = () => {
console.warn('lohin')
};
componentDidMount(){

    addScreenshotListener(this.userDidScreenshot);
}

from react-native-detector.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.