@triniwiz/nativescript-downloader
Version:
Download Manager for NativeScript
13 lines (12 loc) • 502 B
TypeScript
import { DownloaderBase, DownloadOptions, DownloadEventData, StatusCode } from './common';
export declare class Downloader extends DownloaderBase {
constructor();
static setTimeout(timeout: number): void;
createDownload(options: DownloadOptions): string;
start(id: string, progress?: Function): Promise<DownloadEventData>;
getStatus(id: string): StatusCode;
pause(id: string): void;
resume(id: string): void;
cancel(id: string): void;
getPath(id: string): string;
}