summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlangsmith <langstonlmcs@gmail.com>2019-08-28 15:46:50 -0700
committerlangsmith <langstonlmcs@gmail.com>2019-08-29 10:46:03 -0700
commitbbeb8d0e717ba12a9b8fc531f58ef9b00b64e10c (patch)
tree5e760c912b737228751786a68cd5835c8e539547
parent544aabd0204235579e99fe4d9b8c2de16f70e897 (diff)
downloadqtlocation-mapboxgl-upstream/android-docs-changes-to-setOfflineMapboxTileCountLimit-method.tar.gz
[android] javadoc changes to OfflineManager methodsupstream/android-docs-changes-to-setOfflineMapboxTileCountLimit-method
-rw-r--r--platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/offline/OfflineManager.java21
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);