diff options
author | Tobrun <tobrun.van.nuland@gmail.com> | 2019-06-12 16:40:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-12 16:40:59 +0200 |
commit | c2fb3cc76f238908b8c469f47ca547565bcd0242 (patch) | |
tree | e2ef680bafa8de3c2240d8aa2341f4c4899993a1 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HttpRequest.java | |
parent | 844299f1c3b22eed4bf07c37052b3c2ea35e2564 (diff) | |
download | qtlocation-mapboxgl-c2fb3cc76f238908b8c469f47ca547565bcd0242.tar.gz |
[android] - add resource usage to HttpRequest, add offline query parameter flag to http request (#14837)
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HttpRequest.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HttpRequest.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HttpRequest.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HttpRequest.java index fdbb589fef..1fd4f43cd4 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HttpRequest.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HttpRequest.java @@ -15,17 +15,18 @@ public interface HttpRequest { /** * Executes the request. * - * @param httpRequest callback to be invoked when we receive a response - * @param nativePtr the pointer associated to the request - * @param resourceUrl the resource url to download - * @param etag http header, identifier for a specific version of a resource - * @param modified http header, used to determine if a resource hasn't been modified since + * @param httpRequest callback to be invoked when we receive a response + * @param nativePtr the pointer associated to the request + * @param resourceUrl the resource url to download + * @param etag http header, identifier for a specific version of a resource + * @param modified http header, used to determine if a resource hasn't been modified since + * @param offlineUsage flag to indicate a resource will be used for offline, appends offline=true as a query parameter */ void executeRequest(HttpResponder httpRequest, long nativePtr, String resourceUrl, - String etag, String modified); + String etag, String modified, boolean offlineUsage); /** * Cancels the request. - */ + */ void cancelRequest(); } |