calculateDownloadSize

Calculates the download size for updating the specified regions.

This API is useful to calculate the estimated downloading size for multiple regions. Due to possible shared data between regions, the total download size for multiple regions may be smaller than the sum of individual regions' download sizes. This method accounts for such overlaps and provides more precise size estimation.

The callback receives either:

Return

A Cancellable handle. Call Cancellable.cancel to cancel the operation.

Parameters

regions

The regions to calculate download size for.

callback

Called with the result when available. Invoked on the main thread.

Throws

if NdsStore or RegionUpdater is closed.

if regions set is empty.