Skip to content

@capgo/capacitor-downloader

Capacitor plugin for downloading files with background support. Provides resumable downloads with progress tracking.

Capacitor plugin for downloading files with background support. Provides resumable downloads with progress tracking.

  • download - Start a new download task.
  • pause - Pause an active download. Download can be resumed later from the same position.
  • resume - Resume a paused download. Continues from where it was paused.
  • stop - Stop and cancel a download permanently. Downloaded data will be deleted.
MethodDescription
downloadStart a new download task.
pausePause an active download. Download can be resumed later from the same position.
resumeResume a paused download. Continues from where it was paused.
stopStop and cancel a download permanently. Downloaded data will be deleted.
checkStatusCheck the current status of a download.
getFileInfoGet information about a downloaded file.
addListenerListen for download progress updates. Fired periodically as download progresses.
addListenerListen for download completion. Fired when a download finishes successfully.
addListenerListen for download failures. Fired when a download encounters an error.
removeAllListenersRemove all event listeners. Cleanup method to prevent memory leaks.
getPluginVersionGet the plugin version number.

This reference is synced from src/definitions.ts in capacitor-downloader.