MCPcopy Index your code
hub / github.com/Piasy/RxScreenshotDetector

github.com/Piasy/RxScreenshotDetector @v1.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.0 ↗ · + Follow
11 symbols 37 edges 2 files 2 documented · 18% updated 9y ago★ 2413 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

RxScreenshotDetector

Android screenshot detector with ContentObserver and Rx.

Note that this library only work as best effort, it won't (and can't I think) cover all corner cases. Good luck with it :)

ScreenShot

screenshot-detector-demo.gif

Usage

Add to gradle dependency of your module build.gradle:

repositories {
    maven {
        url  "http://dl.bintray.com/piasy/maven"
    }
}

dependencies {
    compile 'com.github.piasy:rxscreenshotdetector:1.2.0'
}

Use in code:

RxScreenshotDetector.start(this)
        .compose(bindToLifecycle())
        .subscribeOn(Schedulers.io())
        .observeOn(AndroidSchedulers.mainThread())
        .subscribe(path -> mTextView.setText(mTextView.getText() + "\nScreenshot: " + path),
                Throwable::printStackTrace);

To use with RxJava 1.x, see RxJava2Interop.

See full example for more details.

Acknowledgements

  • Thanks for RxPermissions, for request permission in reactive way.

Core symbols most depended-on inside this repo

start
called by 1
rxscreenshotdetector/src/main/java/com/github/piasy/rxscreenshotdetector/RxScreenshotDetector.java
matchPath
called by 1
rxscreenshotdetector/src/main/java/com/github/piasy/rxscreenshotdetector/RxScreenshotDetector.java
matchTime
called by 1
rxscreenshotdetector/src/main/java/com/github/piasy/rxscreenshotdetector/RxScreenshotDetector.java
startAfterPermissionGranted
called by 1
rxscreenshotdetector/src/main/java/com/github/piasy/rxscreenshotdetector/RxScreenshotDetector.java
onCreate
called by 0
app/src/main/java/com/github/piasy/rxscreenshotdetector/example/MainActivity.java
onResume
called by 0
app/src/main/java/com/github/piasy/rxscreenshotdetector/example/MainActivity.java
getAllMedia
called by 0
app/src/main/java/com/github/piasy/rxscreenshotdetector/example/MainActivity.java
RxScreenshotDetector
called by 0
rxscreenshotdetector/src/main/java/com/github/piasy/rxscreenshotdetector/RxScreenshotDetector.java

Shape

Method 9
Class 2

Languages

Java100%

Modules by API surface

rxscreenshotdetector/src/main/java/com/github/piasy/rxscreenshotdetector/RxScreenshotDetector.java7 symbols
app/src/main/java/com/github/piasy/rxscreenshotdetector/example/MainActivity.java4 symbols

For agents

$ claude mcp add RxScreenshotDetector \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page