[android] Add completedTile{Count,Size} bindings
This commit is contained in:
committed by
Minh Nguyễn
parent
68cbaf6d3d
commit
b4b693e09f
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user