2.0.1 • Published 11 months ago

@eoscz/capacitor-plugin-native-file-downloader v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

capacitor-plugin-native-file-downloader

Capacitor plugin for downloading files using native apis. Currently available only on web and Android.

Install

npm install @eoscz/capacitor-plugin-native-file-downloader
npx cap sync

API

scheduleFileDownload(...)

scheduleFileDownload(options: ScheduleFileDownloadOptions) => Promise<ScheduleFileDownloadResult>

Schedule file to be downloaded. Returned Promise resolves when the download is scheduled (not when download completes).

ParamType
optionsScheduleFileDownloadOptions

Returns: Promise<ScheduleFileDownloadResult>


Interfaces

ScheduleFileDownloadResult

PropTypeDescription
downloadIdstringThe internal identifier of scheduled download process.

ScheduleFileDownloadOptions

PropTypeDescription
urlstringUrl of the file to be downloaded. e.g. https://example.com/downloads/file.pdf
fileNamestringName of the downloaded file (including extension). e.g. my-file.pdf
2.0.1

11 months ago

2.0.0

11 months ago

1.0.0

1 year ago