Skip to content

Commit 97dfa44

Browse files
committed
update doc
1 parent 4d50d3d commit 97dfa44

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ This is a project based on AOSP DownloadManager and I made this with kotlin and
99
* get a instance of UploadManager
1010
```kotlin
1111
val uploadManager: UploadManager = UploadManager.getUploadManger(context);
12+
// init it when your app boots
13+
uploadManager.init()
1214
```
13-
The best practise is to call `UploadManager.getUploadManger(context)` as early as you need to display
14-
notifications related to upload tasks
15+
The best practise is to call `UploadManager.init()` as early as you need to display
16+
notifications related to upload tasks and to clear/resume the crashed tasks
1517

1618
* upload
1719
```kotlin

0 commit comments

Comments
 (0)