public class HttpRequestUtil
extends java.lang.Object
| Constructor | Description |
|---|---|
HttpRequestUtil() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
setLogEnabled(boolean enabled) |
Set the log state of OkHttpRequest.
|
static void |
setOkHttpClient(okhttp3.OkHttpClient client) |
Set the OkHttpClient used for requesting map resources.
|
static void |
setPrintRequestUrlOnFailure(boolean enabled) |
Enable printing of the request url when an error occurred.
|
public static void setLogEnabled(boolean enabled)
This configuration will outlast the lifecycle of the Map.
enabled - True will enable logging, false will disablepublic static void setPrintRequestUrlOnFailure(boolean enabled)
Requires setLogEnabled(boolean) to be activated.
This configuration will outlast the lifecycle of the Map.
enabled - True will print urls, false will disablepublic static void setOkHttpClient(@Nullable
okhttp3.OkHttpClient client)
This configuration survives across mapView instances. Reset the OkHttpClient to the default by passing null as parameter.
client - the OkHttpClient