diff options
author | Langston Smith <langston.smith@mapbox.com> | 2019-08-29 17:21:31 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-29 17:21:31 -0700 |
commit | 29b11a503766efb469036b38f010400cea57967e (patch) | |
tree | 5e760c912b737228751786a68cd5835c8e539547 | |
parent | 544aabd0204235579e99fe4d9b8c2de16f70e897 (diff) | |
download | qtlocation-mapboxgl-29b11a503766efb469036b38f010400cea57967e.tar.gz |
[android] Javadoc changes to clarify OfflineManager methods (#15519)
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineManager.java | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineManager.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineManager.java index 5bd0dd4bf6..faed46662a 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineManager.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineManager.java @@ -307,7 +307,7 @@ public class OfflineManager { } /** - * Forces revalidation of the ambient cache. + * Forces re-validation of the ambient cache. * <p> * Forces Mapbox GL Native to revalidate resources stored in the ambient * cache with the tile server before using them, making sure they @@ -537,7 +537,13 @@ public class OfflineManager { } /** - * Create an offline region in the database. + * Creates an offline region in the database by downloading the resources needed to use + * the given region offline. + * <p> + * As of version 8.3.0 of the Maps SDK for Android, offline tile requests are no longer exempt from + * billing on mobile. Developers are subject to separate Vector Tile or Raster Tile API pricing for + * offline use. See <a href="https://www.mapbox.com/pricing/">our pricing page</a> for more information. + * </p> * <p> * When the initial database queries have completed, the provided callback will be * executed on the main thread. @@ -609,10 +615,15 @@ public class OfflineManager { } /** - * Changing or bypassing this limit without permission from Mapbox is prohibited - * by the Mapbox Terms of Service. + * Sets the maximum number of Mapbox-hosted tiles that may be downloaded and stored on the current device. + * By default, the limit is set to 6,000. + * <p> + * Once this limit is reached, {@link OfflineRegion.OfflineRegionObserver#mapboxTileCountLimitExceeded(long)} + * fires every additional attempt to download additional tiles until already downloaded tiles are removed + * by calling {@link OfflineRegion#deleteOfflineRegion(OfflineRegion.OfflineRegionDeleteCallback)}. + * </p> * - * @param limit the new tile count limit. + * @param limit the maximum number of tiles allowed to be downloaded */ @Keep public native void setOfflineMapboxTileCountLimit(long limit); |