diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-04-27 12:17:48 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2016-04-27 13:41:29 -0700 |
commit | b4b693e09f7d765b0aa84df208cf8d70ce381b45 (patch) | |
tree | 31b2999c94a3d32c461958b2811fc1799e813926 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegionStatus.java | |
parent | 68cbaf6d3d7ab44e19bd663897a352ff354103b0 (diff) | |
download | qtlocation-mapboxgl-b4b693e09f7d765b0aa84df208cf8d70ce381b45.tar.gz |
[android] Add completedTile{Count,Size} bindings
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegionStatus.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegionStatus.java | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegionStatus.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegionStatus.java index e65a20f18e..48609a13bb 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegionStatus.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineRegionStatus.java @@ -13,17 +13,29 @@ 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 * about this number. @@ -73,6 +85,14 @@ public class OfflineRegionStatus { return completedResourceSize; } + public long getCompletedTileCount() { + return completedTileCount; + } + + public long getCompletedTileSize() { + return completedTileSize; + } + public long getRequiredResourceCount() { return requiredResourceCount; } |