Skip to content

Commit a0b4267

Browse files
authored
Update README.md
1 parent 8c2e252 commit a0b4267

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,15 @@ Step 2. Add the dependency
3737
}
3838

3939
## Usage (Just Kotlin)
40-
41-
FilePicker.show(
42-
activity = this,
40+
showFilePicker(
4341
gridSpanCount = 3,
4442
limitItemSelection = 5,
4543
listDirection = ListDirection.RTL,
4644
fileType = if (video) FileType.VIDEO else FileType.IMAGE,
4745
titleTextColor = ContextCompat.getColor(this, R.color.black),
4846
submitTextColor = ContextCompat.getColor(this, R.color.white),
4947
accentColor = ContextCompat.getColor(this, R.color.purple_200),
50-
) {
51-
// Do something here with selected files
52-
}
53-
54-
**OR**
55-
56-
showFilePicker {
48+
) {
5749
// Do something here with selected files
5850
}
5951

0 commit comments

Comments
 (0)