cancelOperations

abstract fun cancelOperations(regionIds: Set<Region.Id>, action: DownloadedRegionDataAction)

Cancels all the ongoing (download/deletion) operations on the specified regions.

The canceled operations will be notified as canceled via RegionInfoUpdateListener.onOperationStatusesChanged. The already-completed operations will not be affected and no notifications will be sent for them.

Parameters

regionIds

The regions to cancel operations on.

action

the action regarding the partially downloaded region data of the current active operation(s). DownloadedRegionDataAction.Keep will keep the partially downloaded data so that the next time the same operation is scheduled, only the remaining data needs to be downloaded. DownloadedRegionDataAction.Delete will delete it to free up space.

Throws

if NdsStore or RegionUpdater is closed.