Skip to content

Commit

Permalink
update save_location.md to reflect current API (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
wiryadev authored Nov 19, 2022
1 parent ee8abcb commit 514f7ed
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions docs/save_location.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@

By default, ImagePicker will try to save the image generated from camera to `Environment.DIRECTORY_PICTURES` with directory name `"Camera"`.

You can change the directory name only by using:
You can change the directory name by using:

```java
ImagePicker.create(activity).imageDirectory(String dirName)
```
```kotlin
val config = ImagePickerConfig {
savePath = ImagePickerSavePath(dirName)
}
```

Or you can change the full path of the save location by using:

```java
ImagePicker.create(activity).imageFullDirectory(String fullPath)
```kotlin
val config = ImagePickerConfig {
savePath = ImagePickerSavePath(
path = fullPath,
isRelative = false,
)
}
```

0 comments on commit 514f7ed

Please sign in to comment.