public class OfflineRegionStatus
extends java.lang.Object
Note that the total required size in bytes is not currently available. A future API release may provide an estimate of this number.
Modifier and Type | Method and Description |
---|---|
long |
getCompletedResourceCount()
Get the number of resources (inclusive of tiles) that have been fully downloaded
and are ready for offline access.
|
long |
getCompletedResourceSize()
The cumulative size, in bytes, of all resources (inclusive of tiles) that have
been fully downloaded.
|
long |
getCompletedTileCount()
Get the number of tiles that have been fully downloaded and are ready for
offline access.
|
long |
getCompletedTileSize()
Get the cumulative size, in bytes, of all tiles that have been fully downloaded.
|
int |
getDownloadState()
Returns the download state.
|
long |
getRequiredResourceCount()
Get the number of resources that are known to be required for this region.
|
boolean |
isComplete()
Validates if the region download has completed
|
boolean |
isRequiredResourceCountPrecise()
Returns when the value of requiredResourceCount is a precise
count of the number of required resources, and false when it is merely a lower
bound.
|
public boolean isComplete()
public int getDownloadState()
State is defined as
public long getCompletedResourceCount()
public long getCompletedResourceSize()
public long getCompletedTileCount()
public long getCompletedTileSize()
public long getRequiredResourceCount()
public boolean isRequiredResourceCountPrecise()
Specifically, it is false during early phases of an offline download. Once style and tile sources have been downloaded, it is possible to calculate the precise number of required resources, at which point it is set to true.