public class MapboxDirections extends MapboxService<DirectionsResponse>
| Modifier and Type | Class and Description |
|---|---|
static class |
MapboxDirections.Builder<T extends MapboxDirections.Builder>
Directions v5 builder
|
| Modifier and Type | Field and Description |
|---|---|
protected MapboxDirections.Builder |
builder |
| Modifier | Constructor and Description |
|---|---|
protected |
MapboxDirections(MapboxDirections.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCall()
Cancel the call
|
retrofit2.Call<DirectionsResponse> |
cloneCall()
clone the call
|
void |
enqueueCall(retrofit2.Callback<DirectionsResponse> callback)
Execute the call
|
retrofit2.Response<DirectionsResponse> |
executeCall()
Execute the call
|
getCallFactory, getHeaderUserAgent, getOkHttpClient, isEnableDebug, setCallFactory, setEnableDebugprotected MapboxDirections.Builder builder
protected MapboxDirections(MapboxDirections.Builder builder)
public retrofit2.Response<DirectionsResponse> executeCall() throws java.io.IOException
executeCall in class MapboxService<DirectionsResponse>java.io.IOException - Signals that an I/O exception of some sort has occurred.public void enqueueCall(retrofit2.Callback<DirectionsResponse> callback)
enqueueCall in class MapboxService<DirectionsResponse>callback - A Retrofit callback.public void cancelCall()
cancelCall in class MapboxService<DirectionsResponse>public retrofit2.Call<DirectionsResponse> cloneCall()
cloneCall in class MapboxService<DirectionsResponse>