From dcbd64a59ee7b746515fd6fe2d3b0a8abe2d2899 Mon Sep 17 00:00:00 2001 From: Elad Gil Date: Wed, 2 Aug 2017 19:01:00 +0300 Subject: [PATCH] readme update to reflect that resume is only supported on iOS --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2516de4..9623748 100644 --- a/README.md +++ b/README.md @@ -460,7 +460,7 @@ type DownloadFileOptions = { progressDivider?: number; begin?: (res: DownloadBeginCallbackResult) => void; progress?: (res: DownloadProgressCallbackResult) => void; - resumable?: () => void; + resumable?: () => void; // only supported on iOS yet connectionTimeout?: number // only supported on Android yet readTimeout?: number // only supported on Android yet }; @@ -509,17 +509,17 @@ If `progressDivider` = 0, you will receive all `progressCallback` calls, default the fetch interval in `didFinishLaunchingWithOptions`. The `performFetchWithCompletionHandler` callback is handled by RNFS. -If `options.resumable` is provided, it will be invoked when the download has stopped and and can be resumed using `resumeDownload()`. +(IOS only): If `options.resumable` is provided, it will be invoked when the download has stopped and and can be resumed using `resumeDownload()`. ### `stopDownload(jobId: number): void` Abort the current download job with this ID. The partial file will remain on the filesystem. -### `resumeDownload(jobId: number): void` +### (iOS only) `resumeDownload(jobId: number): void` Resume the current download job with this ID. -### `isResumable(jobId: number): Promise` +### (iOS only) `isResumable(jobId: number): Promise` Check if the the download job with this ID is resumable with `resumeDownload()`.