{"id":21130374,"url":"https://github.com/tarek360/InstaCapture","last_synced_at":"2025-07-09T01:33:24.252Z","repository":{"id":48564187,"uuid":"59914629","full_name":"tarek360/Instacapture","owner":"tarek360","description":"Android library to capture screenshot from your app","archived":false,"fork":false,"pushed_at":"2021-07-20T08:28:12.000Z","size":1085,"stargazers_count":692,"open_issues_count":14,"forks_count":106,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-06-23T16:19:02.555Z","etag":null,"topics":["android","android-library","bitmap","capture-screenshots","library","screenshot"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tarek360.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-28T21:11:24.000Z","updated_at":"2025-04-01T06:58:41.000Z","dependencies_parsed_at":"2022-09-02T00:01:57.843Z","dependency_job_id":null,"html_url":"https://github.com/tarek360/Instacapture","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/tarek360/Instacapture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarek360%2FInstacapture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarek360%2FInstacapture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarek360%2FInstacapture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarek360%2FInstacapture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tarek360","download_url":"https://codeload.github.com/tarek360/Instacapture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tarek360%2FInstacapture/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264375550,"owners_count":23598396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-library","bitmap","capture-screenshots","library","screenshot"],"created_at":"2024-11-20T05:32:40.162Z","updated_at":"2025-07-09T01:33:23.765Z","avatar_url":"https://github.com/tarek360.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Component\"\u003e\u003c/A\u003eComponent"],"readme":"# Instacapture 2.0 [![Release](https://jitpack.io/v/tarek360/instacapture.svg)](https://jitpack.io/#tarek360/instacapture)\n\nAndroid library to capture screenshot from your app\n\n\n### Features\n- Capture all the contents of the screen, includes:\n   - Google Maps ([MapView](https://developers.google.com/android/reference/com/google/android/gms/maps/MapView), [SupportMapFragment](https://developers.google.com/android/reference/com/google/android/gms/maps/SupportMapFragment)) \n   - Dialogs, context menus, toasts\n   - TextureView\n   - GLSurfaceView\n\n- Set a specific view(s) to prevent it from capturing.\n- No permissions are required.\n\n\n### Installation\n\nAdd this to your module `build.gradle` file:\n```gradle\ndependencies {\n\t...\n\t compile \"com.github.tarek360:instacapture:2.0.1\"\n}\n```\n\nAdd this to your root `build.gradle` file (**not** your module `build.gradle` file) :\n```gradle\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url \"https://jitpack.io\" }\n\t}\n}\n```\n\n\n### How to use Instacapture ?\n\n#### Kotlin\n\n```kotlin\nInstacapture.capture(this, object : SimpleScreenCapturingListener() {\n    override fun onCaptureComplete(bitmap: Bitmap) {\n       //Your code here..\n\n    }\n})\n\n// or in Rx way\nInstacapture.captureRx(this).subscribe { bitmap -\u003e\n   //Your code here..\n}\n```\n\n#### Java\n\n```java\nInstacapture.INSTANCE.capture(activity, new SimpleScreenCapturingListener() {\n    @Override\n    public void onCaptureComplete(Bitmap bitmap) {\n       //Your code here..\n    }\n}, ignoredViews);\n\n// or in Rx way\nInstacapture.INSTANCE.captureRx(this, ignoredViews).subscribe(new Action1\u003cBitmap\u003e() {\n    @Override\n    public void call(Bitmap bitmap) {\n        //Your code here..\n     }\n});\n\n```\n    \n### How to ignore view(s) from the screenshot?\n\n#### Kotlin\n\n```kotlin\nInstacapture.capture(.., .., ignoredViews)\n//or\nInstacapture.captureRx(.., ignoredViews)\n```\n#### Java\n\n```java\nInstacapture.INSTANCE.capture(.., .., ignoredViews);\n//or\nInstacapture.INSTANCE.captureRx(.., ignoredViews);\n```\n\n\n- To enable Instacapture logging.\n\n#### Kotlin\n\n```kotlin\nInstacapture.enableLogging(true);\n```\n#### Java\n\n```java\nInstacapture.INSTANCE.enableLogging(true);\n```\n\n\n## License\n\n\u003eCopyright 2017 Tarek360\n\n\u003eLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n\u003e   http://www.apache.org/licenses/LICENSE-2.0\n\n\u003eUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarek360%2FInstaCapture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftarek360%2FInstaCapture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftarek360%2FInstaCapture/lists"}