{"id":19389400,"url":"https://github.com/mindorksopensource/screenshot","last_synced_at":"2025-04-24T00:30:50.702Z","repository":{"id":87590212,"uuid":"199412141","full_name":"MindorksOpenSource/screenshot","owner":"MindorksOpenSource","description":"This library helps to take screenshot dynamically","archived":false,"fork":false,"pushed_at":"2020-05-17T17:08:39.000Z","size":180,"stargazers_count":67,"open_issues_count":3,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-02T22:33:08.783Z","etag":null,"topics":["android","android-app","android-application","library","opensource","screenshot"],"latest_commit_sha":null,"homepage":"https://mindorks.com","language":"Kotlin","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/MindorksOpenSource.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-29T08:34:15.000Z","updated_at":"2024-02-10T04:11:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"9893fc2d-0b38-4e12-93a7-d6a6d6f49497","html_url":"https://github.com/MindorksOpenSource/screenshot","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MindorksOpenSource%2Fscreenshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MindorksOpenSource%2Fscreenshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MindorksOpenSource%2Fscreenshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MindorksOpenSource%2Fscreenshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MindorksOpenSource","download_url":"https://codeload.github.com/MindorksOpenSource/screenshot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250539296,"owners_count":21447283,"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-app","android-application","library","opensource","screenshot"],"created_at":"2024-11-10T10:16:09.056Z","updated_at":"2025-04-24T00:30:50.690Z","avatar_url":"https://github.com/MindorksOpenSource.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Screenshot - Take Screenshot Programmatically\n\nThis library helps you to take screenshot of the complete screen or any specific view. This is a very lite library to be integrated.\n\n[![Mindorks](https://img.shields.io/badge/mindorks-opensource-blue.svg)](https://mindorks.com/open-source-projects)\n[![Mindorks Community](https://img.shields.io/badge/join-community-blue.svg)](https://mindorks.com/join-community)\n\n\u003cp align=\"center\"\u003e\n\u003cimg alt=\"screenshot\" src=\"https://raw.githubusercontent.com/MindorksOpenSource/screenshot/master/images/screenshot-banner.png\"\u003e\n\u003c/p\u003e\n\n### Add Screenshot in your library\nAdd it in your root build.gradle at the end of repositories:\n```groovy\nallprojects {\n\t\trepositories {\n\t\t\t\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\nAdd the dependency\n\n```groovy\ndependencies {\n\t        implementation 'com.github.MindorksOpenSource:screenshot:v0.0.1'\n\t}\n```\n\n### Usage of the library,\nType 1 : Basic Implementation. It will take the screenshot of the complete view of the activity and returns a bitmap\n```kotlin\nScreenshot.with(activityReference).getScreenshot()\n```\n\nType 2 :  You can customise the screenshot by adding the features like,\n```kotlin\nScreenshot.with(this)  \n    .setView(/** the view **/)  \n    .setQuality(Quality.HIGH)  \n    .setFlip(Flip.HORIZONTALLY)  \n    .getAsBitmap()\n```\n\n\nType 3 : You can also get the screenshot as a file,\n```kotlin\n Screenshot.with(this)  \n     .setView(/** the view **/)  \n     .setQuality(Quality.HIGH)  \n     .setFlip(Flip.HORIZONTALLY)  \n     .getAsImageFile(/** Pass your Custom File Path**/)\n ```\n\u003e If you leave the File path as empty, it will take the cache directory of your app.\n   \nYou can set the quality by using,\n```kotlin\nsetQuality(/**Quality**/)\n```\n\u003e Quality can be Quality.LOW, Quality.AVERAGE, Quality.MEDIUM, Quality.HIGH\n\nYou can also flip the bitmap by using,\n```kotlin\nsetFlip(/** Flip **/)\n```\n\u003e Flip can be Flip.VERTICAL, Flip.HORIZONTAL, Flip.NOTHING\n\nand at last, you can also Rotate the bitmap as well by using,\n```kotlin\nsetRotation(/** Rotate **/)\n```\n\u003e Rotation can be of, Rotate.DEGREE_0, Rotate.DEGREE_90, Rotate.DEGREE_180, Rotate.DEGREE_270\n\n### Found this project useful :heart:\n* Support by clicking the :star: button on the upper right of this page. :v:\n\n\n### Created \u0026 Maintained By\n[Himanshu Singh](https://github.com/hi-manshu)\n\nLicense\n=======\n\n    Copyright 2019 MindorksOpenSource\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindorksopensource%2Fscreenshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmindorksopensource%2Fscreenshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmindorksopensource%2Fscreenshot/lists"}