native file downloader
npm install capacitor-native-downloader
npx cap sync
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
add(options: { params: IAddDownloadRequest; }) => Promise<IAddDownloadResponse>
Param | Type |
---|---|
options |
{ params: IAddDownloadRequest; } |
Returns: Promise<IAddDownloadResponse>
start(options: { params: IStartDownloadRequest; }) => Promise<IStartDownloadResponse>
Param | Type |
---|---|
options |
{ params: IStartDownloadRequest; } |
Returns: Promise<IStartDownloadResponse>
pause(options: { params: IPauseDownloadRequest; }) => Promise<IPauseDownloadResponse>
Param | Type |
---|---|
options |
{ params: IPauseDownloadRequest; } |
Returns: Promise<IPauseDownloadResponse>
resume(options: { params: IResumeDownloadRequest; }) => Promise<IResumeDownloadResponse>
Param | Type |
---|---|
options |
{ params: IResumeDownloadRequest; } |
Returns: Promise<IResumeDownloadResponse>
cancel(options: { params: ICancelDownloadRequest; }) => Promise<ICancelDownloadResponse>
Param | Type |
---|---|
options |
{ params: ICancelDownloadRequest; } |
Returns: Promise<ICancelDownloadResponse>
Prop | Type |
---|---|
id |
string |
fileName |
string |
absolutePath |
string |
Prop | Type |
---|---|
id |
string |
url |
string |
size |
number |
filePath |
string |
fileName |
string |
displayName |
string |
headers |
{ authorization: string; } |
Prop | Type |
---|---|
id |
string |
filename |
string |
absolutePath |
string |
Prop | Type |
---|---|
id |
string |
Prop | Type |
---|---|
id |
string |
filename |
string |
absolutePath |
string |
Prop | Type |
---|---|
id |
string |
Prop | Type |
---|---|
id |
string |
filename |
string |
absolutePath |
string |
Prop | Type |
---|---|
id |
string |
Prop | Type |
---|---|
id |
string |
filename |
string |
absolutePath |
string |
Prop | Type |
---|---|
id |
string |