Home > @magiclane/maps-sdk > MapDownloaderService > cancelDownload

MapDownloaderService.cancelDownload() method

Cancels an ongoing download operation.

The cancellation is asynchronous; the final completion state will be reported via the progress listener's completion callback (and will typically result in GemError.cancel being delivered to the onComplete callback passed to startDownload).

Signature:

cancelDownload(): void;

Returns:

void