[android] Add completedTile{Count,Size} bindings

This commit is contained in:
John Firebaugh
2016-04-27 12:17:48 -07:00
committed by Minh Nguyễn
parent 68cbaf6d3d
commit b4b693e09f
2 changed files with 29 additions and 3 deletions

View File

@@ -13,16 +13,28 @@ public class OfflineRegionStatus {
@OfflineRegion.DownloadState private int downloadState = OfflineRegion.STATE_INACTIVE;
/**
* The number of resources that have been fully downloaded and are ready for
* offline access.
* The number of resources (inclusive of tiles) that have been fully downloaded
* and are ready for offline access.
*/
private long completedResourceCount = 0;
/**
* The cumulative size, in bytes, of all resources that have been fully downloaded.
* The cumulative size, in bytes, of all resources (inclusive of tiles) that have
* been fully downloaded.
*/
private long completedResourceSize = 0;
/**
* The number of tiles that have been fully downloaded and are ready for
* offline access.
*/
private long completedTileCount = 0;
/**
* The cumulative size, in bytes, of all tiles that have been fully downloaded.
*/
private long completedTileSize = 0;
/**
* The number of resources that are known to be required for this region. See the
* documentation for `requiredResourceCountIsPrecise` for an important caveat
@@ -73,6 +85,14 @@ public class OfflineRegionStatus {
return completedResourceSize;
}
public long getCompletedTileCount() {
return completedTileCount;
}
public long getCompletedTileSize() {
return completedTileSize;
}
public long getRequiredResourceCount() {
return requiredResourceCount;
}