Skip to content

Commit

Permalink
Update README.md doc for v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
PatilShreyas committed Jan 3, 2022
1 parent 60f1b5d commit 5b3de6c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ In `build.gradle` of app module, include this dependency

```gradle
dependencies {
implementation "dev.shreyaspatil:capturable:1.0.0"
implementation "dev.shreyaspatil:capturable:1.0.1"
}
```

Expand Down Expand Up @@ -52,9 +52,15 @@ fun TicketScreen() {

Capturable(
controller = captureController,
onCaptured = { bitmap ->
onCaptured = { bitmap, error ->
// This is captured bitmap of a content inside Capturable Composable.
// Do something with [bitmap]
if (bitmap != null) {
// Bitmap is captured successfully. Do something with it!
}

if (error != null) {
// Error occurred. Handle it!
}
}
) {
// Composable content to be captured.
Expand Down

0 comments on commit 5b3de6c

Please sign in to comment.