From bbeb8d0e717ba12a9b8fc531f58ef9b00b64e10c Mon Sep 17 00:00:00 2001 From: langsmith Date: Wed, 28 Aug 2019 15:46:50 -0700 Subject: [android] javadoc changes to OfflineManager methods --- .../mapbox/mapboxsdk/offline/OfflineManager.java | 21 ++++++++++++++++----- 1 file 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. *

* 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. + *

+ * 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 our pricing page for more information. + *

*

* 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. + *

+ * 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)}. + *

* - * @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); -- cgit v1.2.1