{"repo":"PatilShreyas/Capturable","free":true,"listed":false,"github":"https://github.com/PatilShreyas/Capturable","clone":"git clone https://github.com/PatilShreyas/Capturable.git","description":"🚀Jetpack Compose utility library for capturing Composable content and transforming it into Bitmap Image🖼️","language":"Kotlin","stars":1224,"topics":["android","jetpack-compose","android-app","kotlin","bitmap","screenshot","jetpack-android","composable","photos","image"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Capturable 🚀A Jetpack Compose utility library for converting Composable content into Bitmap image 🖼️. Made with ❤️ for Android Developers and Composers 💡Introduction In the previous View system, drawing Bitmap Image from View was very straightforward. But that's not the case with Jetpack Compose since it's different in many aspects from previous system. This library helps easy way to achieve the same results. 🚀 Implementation You can check /app directory which includes example application for demonstration. Gradle setup In build.gradle of app module, include this dependency You can find latest version and changelogs in the releases . Usage 1. Setup the controller To be able to capture Composable content, you need instance of CaptureController by which you can decide when to capture the content. You can get the instance as follow. rememberCaptureController() is a Composable function. 2. Add the content The component which needs to be captured, a capturable() Modifier should be applied on that @Composable component as follows. 3. Capture the content To capture the content, use CaptureController#captureAsync() as follows. On calling this method, request for capturing the content will be sent and ImageBitmap will be returned asynchronously. This method is safe to be called from Main thread. 📄 API Documentation Visit the API documentation of this library to get more information in detail. --- 🙋‍♂️ Contribute Read contribution guidelines for more information regarding contrib","default_branch":null,"files":null,"tree":[],"storefront":"/r/PatilShreyas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/PatilShreyas/Capturable/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}