Skip to content

Commit 3d8da6a

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents ac94f80 + a257a4a commit 3d8da6a

1 file changed

Lines changed: 6 additions & 43 deletions

File tree

README.md

Lines changed: 6 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Media Picker is an Android Library that lets you to select multiple images, vide
1010

1111
```gradle
1212
dependencies {
13-
implementation 'com.github.thirdegg:media-picker:1.0.0-alpha'
13+
implementation 'com.github.thirdegg:media-picker:1.0.1-alpha'
1414
}
1515
```
1616

@@ -25,65 +25,28 @@ You will need to create a new instance of `MediaPicker`. Once the instance are c
2525

2626
```kotlin
2727
MediaPicker.Builder(MainActivity.this)
28-
.mode(MediaPicker.Mode.CAMERA_AND_GALLERY)
29-
.directory(MediaPicker.Directory.DEFAULT)
30-
.imageExtension(MediaPicker.Extension.PNG)
31-
.videoExtension(MediaPicker.Extension.MP4)
3228
.allowMultipleImages(false)
3329
.enableDebuggingMode(true)
3430
.setCallback { files->
3531
//TODO
3632
}
37-
.build();
33+
.build()
3834
```
3935

40-
### Additional Image Options
41-
* `mode` to select the mode, you can choose one of these `CAMERA`,`GALLERY` or `CAMERA_AND_GALLERY`
42-
43-
```kotlin
44-
.mode(MediaPicker.Mode.CAMERA)
45-
```
46-
47-
* `imageExtension` You can change the imageExtension of image to `PNG` or `JPG`
48-
49-
```kotlin
50-
.imageExtension(MediaPicker.Extension.PNG)
51-
```
52-
53-
* `directory` You can pass the storage path, or select `Directory.DEFAULT_DIR` to keep the default path.
54-
55-
```kotlin
56-
.directory(MediaPicker.Directory.DEFAULT)
57-
58-
//OR
59-
60-
.directory(Environment.getExternalStorageDirectory()+"/myFolder")
61-
```
36+
### Additional Options
6237

6338
* `allowMultipleImages` Extra used to select and return multiple images from gallery **CANNOT select single image from gallery if this feature was enabled**
6439

6540
```kotlin
66-
.allowMultipleImages(true)
41+
.allowMultipleImages(true)
6742
```
6843

6944
* `allowOnlineImages` an option to allow the user to select any image from online resource ex: Google Drive **(KNOWN ISSUE) if you enable this option then you cannot select multiple images**
7045

7146
```kotlin
72-
.allowOnlineImages(true)
73-
```
74-
75-
### Additional Video Options
76-
* `mode` to select the mode, you can choose one of these `CAMERA`,`GALLERY` or `CAMERA_AND_GALLERY`
77-
78-
```kotlin
79-
.mode(MediaPicker.Mode.CAMERA)
47+
.allowOnlineImages(true)
8048
```
8149

82-
* `imageExtension` You can change the imageExtension of video to `MP4`
83-
84-
```kotlin
85-
.imageExtension(MediaPicker.Extension.MP4)
86-
```
8750
---
8851

89-
library based on [https://github.com/alhazmy13/MediaPicker](https://github.com/alhazmy13/MediaPicker)
52+
library based on [https://github.com/alhazmy13/MediaPicker](https://github.com/alhazmy13/MediaPicker)

0 commit comments

Comments
 (0)