Interface: DownloadOptions
Defined in: fetcher/fetcher.ts:29
Options controlling a download call.
Properties
forceDownload?
optionalforceDownload:boolean
Defined in: fetcher/fetcher.ts:44
Re-downloads every remote source even when it is already cached, replacing the cached copy. Use to recover from a corrupted file or to pick up a model that changed behind a stable URL.
onProgress()?
optionalonProgress: (progress) =>void
Defined in: fetcher/fetcher.ts:31
Called with overall progress in [0, 1] as bytes arrive.
Parameters
progress
number
Returns
void
signal?
optionalsignal:any
Defined in: fetcher/fetcher.ts:38
Aborts the download. The bytes fetched so far are kept so a later download of the same source resumes instead of restarting, except on Android without the optional background downloader, where the system DownloadManager discards a cancelled transfer.