[android] - javadoc fixes breaking the release build
This commit is contained in:
@@ -76,6 +76,7 @@ public class OfflineManager {
|
||||
public interface CreateOfflineRegionCallback {
|
||||
/**
|
||||
* Receives the newly created offline region
|
||||
*
|
||||
* @param offlineRegion
|
||||
*/
|
||||
void onCreate(OfflineRegion offlineRegion);
|
||||
@@ -95,7 +96,7 @@ public class OfflineManager {
|
||||
private OfflineManager(Context context) {
|
||||
// Get a pointer to the DefaultFileSource instance
|
||||
String assetRoot = getDatabasePath(context);
|
||||
String cachePath = assetRoot + File.separator + DATABASE_NAME;
|
||||
String cachePath = assetRoot + File.separator + DATABASE_NAME;
|
||||
mDefaultFileSourcePtr = createDefaultFileSource(cachePath, assetRoot, DEFAULT_MAX_CACHE_SIZE);
|
||||
|
||||
if (MapboxAccountManager.getInstance() != null) {
|
||||
@@ -142,11 +143,12 @@ public class OfflineManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if external storage is available to at least read. In order for this to work, make
|
||||
* sure you include <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
* (or WRITE_EXTERNAL_STORAGE) for API level < 18 in your app Manifest.
|
||||
*
|
||||
* Code from https://developer.android.com/guide/topics/data/data-storage.html#filesExternal
|
||||
* Checks if external storage is available to at least read. In order for this to work, make
|
||||
* sure you include <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
||||
* (or WRITE_EXTERNAL_STORAGE) for API level < 18 in your app Manifest.
|
||||
* <p>
|
||||
* Code from https://developer.android.com/guide/topics/data/data-storage.html#filesExternal
|
||||
* </p>
|
||||
*/
|
||||
public static boolean isExternalStorageReadable() {
|
||||
String state = Environment.getExternalStorageState();
|
||||
@@ -190,8 +192,8 @@ public class OfflineManager {
|
||||
|
||||
/**
|
||||
* Access token getter/setter
|
||||
* @param accessToken
|
||||
*
|
||||
* @param accessToken
|
||||
* @deprecated As of release 4.1.0, replaced by {@link MapboxAccountManager#start(Context, String)} ()}
|
||||
*/
|
||||
@Deprecated
|
||||
@@ -201,8 +203,8 @@ public class OfflineManager {
|
||||
|
||||
/**
|
||||
* Get Access Token
|
||||
* @return Access Token
|
||||
*
|
||||
* @return Access Token
|
||||
* @deprecated As of release 4.1.0, replaced by {@link MapboxAccountManager#getAccessToken()}
|
||||
*/
|
||||
@Deprecated
|
||||
@@ -220,9 +222,10 @@ public class OfflineManager {
|
||||
|
||||
/**
|
||||
* Retrieve all regions in the offline database.
|
||||
*
|
||||
* <p>
|
||||
* The query will be executed asynchronously and the results passed to the given
|
||||
* callback on the main thread.
|
||||
* </p>
|
||||
*/
|
||||
public void listOfflineRegions(@NonNull final ListOfflineRegionsCallback callback) {
|
||||
listOfflineRegions(mDefaultFileSourcePtr, new ListOfflineRegionsCallback() {
|
||||
@@ -250,13 +253,15 @@ public class OfflineManager {
|
||||
|
||||
/**
|
||||
* Create an offline region in the database.
|
||||
*
|
||||
* <p>
|
||||
* When the initial database queries have completed, the provided callback will be
|
||||
* executed on the main thread.
|
||||
*
|
||||
* </p>
|
||||
* <p>
|
||||
* Note that the resulting region will be in an inactive download state; to begin
|
||||
* downloading resources, call `OfflineRegion.setDownloadState(DownloadState.STATE_ACTIVE)`,
|
||||
* optionally registering an `OfflineRegionObserver` beforehand.
|
||||
* </p>
|
||||
*/
|
||||
public void createOfflineRegion(
|
||||
@NonNull OfflineRegionDefinition definition,
|
||||
@@ -303,6 +308,7 @@ public class OfflineManager {
|
||||
String cachePath, String assetRoot, long maximumCacheSize);
|
||||
|
||||
private native void setAccessToken(long defaultFileSourcePtr, String accessToken);
|
||||
|
||||
private native String getAccessToken(long defaultFileSourcePtr);
|
||||
|
||||
private native void listOfflineRegions(
|
||||
|
||||
@@ -2,8 +2,9 @@ package com.mapbox.mapboxsdk.style.layers;
|
||||
|
||||
/**
|
||||
* Custom layer.
|
||||
* <p/>
|
||||
* <p>
|
||||
* Experimental feature. Do not use.
|
||||
* </p>
|
||||
*/
|
||||
public class CustomLayer extends Layer {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import android.support.annotation.ColorInt;
|
||||
/**
|
||||
* Constructs paint/layout properties for Layers
|
||||
*
|
||||
* @see <a href="https://www.mapbox.com/mapbox-gl-style-spec/#layers>Layer style documentation</a>
|
||||
* @see <a href="https://www.mapbox.com/mapbox-gl-style-spec/#layers">Layer style documentation</a>
|
||||
*/
|
||||
public class PropertyFactory {
|
||||
|
||||
|
||||
@@ -157,8 +157,9 @@ public class TileSet {
|
||||
* If the array doesn't contain any entries, interactivity is not supported
|
||||
* for this tileset. See https:github.com/mapbox/utfgrid-spec/tree/master/1.2
|
||||
* for the interactivity specification.
|
||||
* <p/>
|
||||
* <p>
|
||||
* Example: "http:localhost:8888/admin/1.0.0/broadband/{z}/{x}/{y}.grid.json"
|
||||
* </p>
|
||||
*/
|
||||
public void setGrids(String... grids) {
|
||||
this.grids = grids;
|
||||
@@ -176,8 +177,9 @@ public class TileSet {
|
||||
* All endpoints MUST return the same content for the same URL.
|
||||
* If the array doesn't contain any entries, then no data is present in
|
||||
* the map.
|
||||
* <p/>
|
||||
* <p>
|
||||
* "http:localhost:8888/admin/data.geojson"
|
||||
* </p>
|
||||
*/
|
||||
public void setData(String... data) {
|
||||
this.data = data;
|
||||
@@ -188,7 +190,7 @@ public class TileSet {
|
||||
}
|
||||
|
||||
/**
|
||||
* 0. >= 0, <= 22. An integer specifying the minimum zoom level.
|
||||
* 0. >= 0, < 22. An integer specifying the minimum zoom level.
|
||||
*/
|
||||
public void setMinZoom(float minZoom) {
|
||||
this.minZoom = minZoom;
|
||||
@@ -199,7 +201,7 @@ public class TileSet {
|
||||
}
|
||||
|
||||
/**
|
||||
* 0. >= 0, <= 22. An integer specifying the maximum zoom level.
|
||||
* 0. >= 0, <= 22. An integer specifying the maximum zoom level.
|
||||
*/
|
||||
public void setMaxZoom(float maxZoom) {
|
||||
this.maxZoom = maxZoom;
|
||||
|
||||
Reference in New Issue
Block a user